ViewsΒΆ

  • Placed in APP/views (.py or a directory)
  • Can be any callable python function.
  • These should provide sane defaults, easily overridable:

Example:

 `  def register(request, success_url=None,
             form_class=RegistrationForm
             template_name='registration/registration_form.html',
             extra_context=None):
`