Skip to content

Instantly share code, notes, and snippets.

@DenisCangemi
Created February 6, 2018 18:20
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 DenisCangemi/8ae2b199a6ebe022b3a81e46b9fe26bb to your computer and use it in GitHub Desktop.
Save DenisCangemi/8ae2b199a6ebe022b3a81e46b9fe26bb to your computer and use it in GitHub Desktop.
# hello/views.py
from django.shortcuts import render
from django.views.generic import TemplateView
# Create your views here.
class HomePageView(TemplateView):
def get(self, request, **kwargs):
return render(request, 'index.html', context=None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment