Created
December 20, 2016 19:07
-
-
Save patrys/2ec372e69c6081daa82f289b7e19ca69 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from django.views.generic import View | |
from django.template.response import TemplateResponse | |
def get(request): | |
return TemplateResponse(request, 'index.html') | |
my_class_based_view = View.as_view(dispatch=get, __init__=7, as_view=None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment