Created
May 18, 2011 17:03
-
-
Save benmcnelly/979011 to your computer and use it in GitHub Desktop.
urls
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 import settings | |
# 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'^$', 'menu.views.home_stuff'), | |
(r'^menus/$', 'menu.views.menu_list'), | |
(r'^menus/(?P<menu_name>[-\w]+)/$', 'menu.views.section_list'), | |
(r'^menus/(?P<menu_name>[-\w]+)/(?P<section_name>[-\w]+)/$', 'menu.views.item_list'), | |
(r'^menus/(?P<menu_name>[-\w]+)/(?P<section>[-\w]+)/(?P<item_id>[-\w]+)/$', 'menu.views.item_detail'), | |
(r'^item/$', 'menu.views.item_list'), | |
(r'^item/(?P<item_id>\d+)/$', 'menu.views.item_detail'), | |
(r'^tab/$', 'facebook.views.dealios'), | |
(r'^events/$', 'event.views.index'), | |
(r'^events/(?P<id>\d+)/$', 'event.views.detail'), | |
(r'^facebook/$', 'facebook.views.appage'), | |
(r'^photos/$', 'gallery.views.gallery_list'), | |
(r'^photos/(?P<id>\d+)/$', 'gallery.views.gallery_detail'), | |
(r'^specials/$', 'menu.views.special_list'), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment