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<slug>[-\w]+)/edit/', views.edit_sandwich, name='edit_sandwich'),
10 url(r'^sandwich/(?P<slug>[-\w]+)/$', views.specific_sandwich, name='sandwich_by_slug'),
11 url(r'^sandwich/(?P<year>[-\w]+)/(?P<month>[-\w]+)/$', views.sandwich_month, name='sandwich_by_month'),
12 url(r'^login/$', views.login_view, name='login'),
13 url(r'^login2/$', views.login_view2, name='login2'),
14 url(r'^logout/$', views.logout_view, name='logout'),
15 url(r'^signup/$', views.create_user, name='signup'),
16 url(r'^ajaxfun', views.ajaxfun, name='ajaxfun'),
17 url(r'^comments/posted/$', views.comment_posted, name='comment_posted'),
18 (r'^comments/', include('django.contrib.comments.urls')),
19 url(r'^home/$', views.current_home, name='index'),