1 from django.conf.urls.defaults import *
3 from django.shortcuts import render_to_response
5 urlpatterns = patterns('',
6 url(r'^sandwich/add/$', views.add_sandwich, name='add_sandwich'),
7 url(r'^sandwich/addingredient/$', views.add_ingredient, name='add_ingredient'),
8 url(r'^sandwich/all/$', views.all_sandwich, name='all_sandwiches'),
9 url(r'^sandwich/(?P<gusername>[-\w]+)/edit/', views.edit_user, name='edit_user'),
10 url(r'^sandwich/(?P<slug>[-\w]+)/edit/', views.edit_sandwich, name='edit_sandwich'),
11 url(r'^sandwich/(?P<slug>[-\w]+)/delete/', views.del_sandwich, name='del_sandwich'),
12 url(r'^sandwich/(?P<slug>[-\w]+)/$', views.specific_sandwich, name='sandwich_by_slug'),
13 url(r'^sandwich/(?P<year>[-\w]+)/(?P<month>[-\w]+)/$', views.sandwich_month, name='sandwich_by_month'),
14 url(r'^login/$', views.login_view, name='login'),
15 url(r'^login2/$', views.login_view2, name='login2'),
16 url(r'^logout/$', views.logout_view, name='logout'),
17 url(r'^signup/$', views.create_user, name='signup'),
18 url(r'^ajaxfun', views.ajaxfun, name='ajaxfun'),
19 url(r'^comments/posted/$', views.comment_posted, name='comment_posted'),
20 (r'^comments/', include('django.contrib.comments.urls')),
21 url(r'^home/$', views.current_home, name='index'),