Created
October 6, 2013 19:56
-
-
Save groovecoder/6858385 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 django.views.generic.simple import direct_to_template | |
direct_templates = ['about', 'news'] | |
for template in direct_templates: | |
urlpatterns = patterns('', (r'^%s/?$' % template), direct_to_template, | |
{'template': '%s.html' % template}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment