Created
November 25, 2012 16:18
-
-
Save refack/4144214 to your computer and use it in GitHub Desktop.
View for static files in Django
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 django.conf.urls.defaults import * | |
from django.views.generic.simple import direct_to_template | |
urlpatterns = patterns('', | |
('^about/$', direct_to_template, { | |
'template': 'about.html' | |
}) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment