Created
October 15, 2011 19:08
-
-
Save eknuth/1289996 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 annoying.decorators import render_to | |
@render_to('hero.html') | |
def home(request): | |
return {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can get away with not having a view at all with directly loading the template from urls.py. Add this to your url patterns:
url(r'^hero$', 'django.views.generic.simple.direct_to_template', {'template':'hero.html'}),