Skip to content

Views

A view is a concept that is part of Model-View-Controller, the view manages the appearance of the application, you could guess that in Django a view would be the template, but actually, on Django what would be a handler in an Express like framework, because the view can build a HTML without using templates. On Django an Exception could return a 4xx or 5xx response.

Related articles:

Writing views

Read this.

Async views

Read this.

Functional views

Read this.

Render templates

Read this.

Redirections

Read this.

Where are the views?

It where in breathecode/APP_NAME/views.py.

Where is the test file?

It where in breathecode/APP_NAME/tests/urls/tests_ROUTE_NAME.py.