moved media to media folder in app
[~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         url(r'^sandwich/index/$', views.index_sandwich, name='index_sandwich'),
7         url(r'^sandwich/add/$', views.add_sandwich, name='add_sandwich'),
8         url(r'^sandwich/all/$', views.all_sandwich, name='all_sandwiches'),
9         url(r'^users/(?P<username>[-\w]+)/sandwiches/', views.sandwich_user, name='sandwich_user'),
10         url(r'^users/(?P<gusername>[-\w]+)/edit/', views.edit_user, name='edit_user'),
11         url(r'^sandwich/(?P<slug>[-\w]+)/edit/', views.edit_sandwich, name='edit_sandwich'),
12         url(r'^sandwich/(?P<slug>[-\w]+)/delete/', views.del_sandwich, name='del_sandwich'),
13         url(r'^sandwich/(?P<slug>[-\w]+)/$', views.specific_sandwich, name='sandwich_by_slug'),
14         url(r'^sandwich/(?P<year>[-\w]+)/(?P<month>[-\w]+)/$', views.sandwich_month, name='sandwich_by_month'),
15         url(r'^login/$', views.login_view, name='login'),
16         url(r'^logout/$', views.logout_view, name='logout'),
17         url(r'^signup/$', views.create_user, name='signup'),
18         url(r'^ajaxfun', views.ajaxfun, name='ajaxfun'),
19         url(r'^comments/posted/$', views.comment_posted, name='comment_posted'),
20         (r'^comments/', include('django.contrib.comments.urls')),
21         url(r'^home/$', views.current_home, name='index'),
22 )