X-Git-Url: http://git.ithinksw.org/~kgodey/maayanwich.git/blobdiff_plain/799a2ef9956edf518979879e0f29e4ac757ff791..d4c7020dea9dfb1de97b9048b70d168c52022d79:/urls.py diff --git a/urls.py b/urls.py index be8af48..a2a7ff7 100644 --- a/urls.py +++ b/urls.py @@ -1,5 +1,13 @@ from django.conf.urls.defaults import * +import views +from django.shortcuts import render_to_response urlpatterns = patterns('', - (r'^addsandwich/$', 'views.add_sandwich'), + (r'^addsandwich/$', views.add_sandwich), + (r'^login/$', views.login_view), + (r'^addingredient/$', views.add_ingredient), + (r'^allsandwiches/$', views.all_sandwich), + (r'^newsandwiches/$', views.newsandwiches), + (r'^sandwich/(?P[-\w]+)/$', views.specific_sandwich), + (r'^sandwich/(?P[-\w]+)/(?P[-\w]+)/$', views.sandwich_month), )