Skip to content

Instantly share code, notes, and snippets.

@benmcnelly
Created May 18, 2011 17:03
Show Gist options
  • Save benmcnelly/979011 to your computer and use it in GitHub Desktop.
Save benmcnelly/979011 to your computer and use it in GitHub Desktop.
urls
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