Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 636 Bytes
# Views file is not used since I am using the direct_to_template generic view in urls.py to create the mysite homepage. Keeping this here for future reference as an alternative way of doing the same thing with a view: http://stackoverflow.com/questions/3402708/django-urls-straight-to-html-template/3402840#3402840
# from django.views.generic.simple import direct_to_template
# from django.http import Http404
#
# def home(request, home):
# # Use some exception handling, just to be safe
# try:
# return direct_to_template(request, '/' % (request, base.html))
# except TemplateDoesNotExist:
# raise Http404