Created
March 26, 2011 02:30
-
-
Save benmcnelly/887974 to your computer and use it in GitHub Desktop.
urls.py
This file contains 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 * | |
# 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