Created
February 3, 2016 19:15
-
-
Save filipeximenes/9fc0bae888b74b73ca36 to your computer and use it in GitHub Desktop.
Django view pattern
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url(r'^example/$', 'account.views.example_view', name='user_info'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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