Skip to content

Instantly share code, notes, and snippets.

@filipeximenes
Created February 3, 2016 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save filipeximenes/9fc0bae888b74b73ca36 to your computer and use it in GitHub Desktop.
Save filipeximenes/9fc0bae888b74b73ca36 to your computer and use it in GitHub Desktop.
Django view pattern
url(r'^example/$', 'account.views.example_view', name='user_info'),
class ExampleView(TemplateView)
template = 'the_template.html'
example_view = ExampleView.as_view()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment