Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (13 sloc) 415 Bytes
.. _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):
`
You can’t perform that action at this time.