Skip to content

Instantly share code, notes, and snippets.

@dannyroa
Created October 25, 2012 20:02
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 dannyroa/3955065 to your computer and use it in GitHub Desktop.
Save dannyroa/3955065 to your computer and use it in GitHub Desktop.
urlpatterns = patterns('django.views.generic.simple',
(r'^foo/$', 'direct_to_template', {'template': 'foo_index.html'}),
(r'^foo/(?P<id>\d+)/$', 'direct_to_template', {'template': 'foo_detail.html'}),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment