Skip to content

Instantly share code, notes, and snippets.

@YankeeTube
Last active January 30, 2019 15:08
Show Gist options
  • Save YankeeTube/298f10a5ba7aa409d9ce7da103a52c34 to your computer and use it in GitHub Desktop.
Save YankeeTube/298f10a5ba7aa409d9ce7da103a52c34 to your computer and use it in GitHub Desktop.
# 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