Last active
January 30, 2019 15:08
-
-
Save YankeeTube/298f10a5ba7aa409d9ce7da103a52c34 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
| # views.py | |
| from django.views.generic.base import TemplateView | |
| class Test(TemplateView): | |
| template_name = 'yankee/result.html' | |
| def get_context_data(self, **kwargs): | |
| context = super().get_context_data(**kwargs) | |
| context['form'] = TestForm | |
| return context |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment