-
Notifications
You must be signed in to change notification settings - Fork 13
/
urls.py
27 lines (19 loc) · 1.25 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^search$', views.search, name='search'),
url(r'^my_products$', views.my_products, name='my_products'),
url(r'^my_data', views.my_data, name='my_data'),
url(r'^product/new$', views.product_new, name='product_new'),
url(r'^product/new/question/(?P<product_id>[\d]+)$', views.product_new_question, name='product_question_new'),
url(r'^product/edit/(?P<product_id>[\d]+)$', views.product_edit, name='product_edit'),
url(r'^product/(?P<slug>[-\w\d]+)$', views.product_show, name='product_show'),
url(r'^product/(?P<product_id>[\d]+)/questions/(?P<question_id>[\d]+)$', views.product_answer_question,
name='product_answer_question'),
url(r'^product/(?P<product_id>[\d]+)/questions$', views.product_question, name='product_question'),
url(r'^product/(?P<product_id>[\d]+)/image/(?P<image_id>[\d]+)/delete$', views.prodcut_images_delete,
name='product_images_delete'),
url(r'^product/(?P<product_id>[\d]+)/images', views.product_images, name='product_images'),
url(r'^product/(?P<product_id>[\d]+)/new/image/$', views.product_images_new, name='product_images_new'),
]