Skip to content

Instantly share code, notes, and snippets.

@benmcnelly
Created March 26, 2011 02:30
Show Gist options
  • Save benmcnelly/887974 to your computer and use it in GitHub Desktop.
Save benmcnelly/887974 to your computer and use it in GitHub Desktop.
urls.py
from django.conf.urls.defaults import *
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/', include(admin.site.urls)),
(r'^item/$', 'menu.views.item_list'),
(r'^item/(?P<item_id>\d+)/$', 'menu.views.item_detail'),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment