From 2886f2fa0204037d2548a93ca3b587e97a1eb68d Mon Sep 17 00:00:00 2001 From: Kriti Godey Date: Thu, 4 Mar 2010 13:30:39 -0500 Subject: [PATCH] Made URLs more RESTful. --- urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/urls.py b/urls.py index 84cb5ae..1d2f6f7 100644 --- a/urls.py +++ b/urls.py @@ -3,12 +3,12 @@ import views from django.shortcuts import render_to_response urlpatterns = patterns('', - (r'^addsandwich/$', views.add_sandwich), + (r'^sandwich/add/$', views.add_sandwich), (r'^login/$', views.login_view), (r'^newuser/$', views.create_user), - (r'^addingredient/$', views.add_ingredient), - (r'^allsandwiches/$', views.all_sandwich), - (r'^newsandwiches/$', views.newsandwiches), + (r'^sandwich/addingredient/$', views.add_ingredient), + (r'^sandwich/all/$', views.all_sandwich), + (r'^sandwich/new/$', views.newsandwiches), (r'^sandwich/(?P[-\w]+)/$', views.specific_sandwich), (r'^sandwich/(?P[-\w]+)/(?P[-\w]+)/$', views.sandwich_month), ) -- 2.20.1