1 from django.conf.urls.defaults import *
3 from django.shortcuts import render_to_response
5 urlpatterns = patterns('',
6 (r'^sandwich/add/$', views.add_sandwich),
7 (r'^sandwich/addingredient/$', views.add_ingredient),
8 (r'^sandwich/all/$', views.all_sandwich),
9 (r'^sandwich/(?P<year>[-\w]+)/(?P<month>[-\w]+)/$', views.sandwich_month),
10 url(r'^sandwich/(?P<slug>[-\w]+)/$', views.specific_sandwich, name='sandwich_by_slug'),
11 (r'^login/$', views.login_view),
12 (r'^signup/$', views.create_user),
13 (r'', views.baseview),