from django.shortcuts import render_to_response
urlpatterns = patterns('',
- (r'^sandwich/add/$', views.add_sandwich),
+ (r'^sandwiches/add/$', views.add_sandwich),
(r'^login/$', views.login_view),
(r'^newuser/$', views.create_user),
- (r'^sandwich/addingredient/$', views.add_ingredient),
- (r'^sandwich/all/$', views.all_sandwich),
- (r'^sandwich/new/$', views.newsandwiches),
- (r'^sandwich/(?P<slug>[-\w]+)/$', views.specific_sandwich),
- (r'^sandwich/(?P<year>[-\w]+)/(?P<month>[-\w]+)/$', views.sandwich_month),
+ (r'^sandwiches/addingredient/$', views.add_ingredient),
+ (r'^sandwiches/all/$', views.all_sandwich),
+ (r'^sandwiches/new/$', views.newsandwiches),
+ (r'^sandwiches/(?P<slug>[-\w]+)/$', views.specific_sandwich),
+ (r'^sandwiches/(?P<year>[-\w]+)/(?P<month>[-\w]+)/$', views.sandwich_month),
)