web_AI-5/django/didgeridoo/webshop/urls.py

30 lines
778 B
Python
Raw Normal View History

from django.conf.urls import url, include
2017-11-12 21:35:59 +01:00
2017-12-28 16:40:04 +01:00
from webshop import views
2017-11-12 21:35:59 +01:00
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^details/(?P<article_id>[0-9]+)/$',
views.article_details,
name='details'),
url(r'^category/(?P<category_id>[0-9]+)/$',
views.articles_in_category,
name='category'),
url('^', include('django.contrib.auth.urls')),
url(r'^profile/$',
views.profile,
name='profile'),
url(r'^registration/$',
views.registration,
name='registration'),
2018-02-04 18:32:54 +01:00
url(r'^cart/$',
views.cart,
name='cart'),
2018-02-25 17:26:24 +01:00
url(r'^cart/checkout/$',
views.checkout,
name='checkout'),
2018-02-27 23:56:41 +01:00
url(r'^order/(?P<order_id>[0-9]+)/$',
views.order,
name='order'),
2017-11-12 21:35:59 +01:00
]