30 lines
778 B
Python
30 lines
778 B
Python
from django.conf.urls import url, include
|
|
|
|
from webshop import views
|
|
|
|
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'),
|
|
url(r'^cart/$',
|
|
views.cart,
|
|
name='cart'),
|
|
url(r'^cart/checkout/$',
|
|
views.checkout,
|
|
name='checkout'),
|
|
url(r'^order/(?P<order_id>[0-9]+)/$',
|
|
views.order,
|
|
name='order'),
|
|
]
|