Modified URLS from "sandwich" to "sandwiches"
[~kgodey/maayanwich.git] / urls.py
1 from django.conf.urls.defaults import *
2 import views
3 from django.shortcuts import render_to_response
4
5 urlpatterns = patterns('',
6         (r'^sandwiches/add/$', views.add_sandwich),
7         (r'^login/$', views.login_view),
8         (r'^newuser/$', views.create_user),
9         (r'^sandwiches/addingredient/$', views.add_ingredient),
10         (r'^sandwiches/all/$', views.all_sandwich),
11         (r'^sandwiches/new/$', views.newsandwiches),
12         (r'^sandwiches/(?P<slug>[-\w]+)/$', views.specific_sandwich),
13         (r'^sandwiches/(?P<year>[-\w]+)/(?P<month>[-\w]+)/$', views.sandwich_month),
14 )