Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
.. _apps-views:
Views
=====
+ Placed in APP/views (.py or a directory)
+ Can be any callable python function.
+ These should provide sane defaults, easily overridable:
Example:
.. sourcecode:: python
` def register(request, success_url=None,
form_class=RegistrationForm
template_name='registration/registration_form.html',
extra_context=None):
`