git.ithinksw.org
/
~kgodey
/
maayanwich.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2d13c64
)
Made URLs more RESTful.
author
Kriti Godey
<kriti.godey@gmail.com>
Thu, 4 Mar 2010 18:30:39 +0000
(13:30 -0500)
committer
Kriti Godey
<kriti.godey@gmail.com>
Thu, 4 Mar 2010 18:30:39 +0000
(13:30 -0500)
urls.py
patch
|
blob
|
history
diff --git
a/urls.py
b/urls.py
index
84cb5ae
..
1d2f6f7
100644
(file)
--- a/
urls.py
+++ b/
urls.py
@@
-3,12
+3,12
@@
import views
from django.shortcuts import render_to_response
urlpatterns = patterns('',
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'^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<slug>[-\w]+)/$', views.specific_sandwich),
(r'^sandwich/(?P<year>[-\w]+)/(?P<month>[-\w]+)/$', views.sandwich_month),
)
(r'^sandwich/(?P<slug>[-\w]+)/$', views.specific_sandwich),
(r'^sandwich/(?P<year>[-\w]+)/(?P<month>[-\w]+)/$', views.sandwich_month),
)