You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
2.3 KiB
55 lines
2.3 KiB
"""Eshop URL Configuration
|
|
|
|
The `urlpatterns` list routes URLs to views. For more information please see:
|
|
https://docs.djangoproject.com/en/1.10/topics/http/urls/
|
|
Examples:
|
|
Function views
|
|
1. Add an import: from my_app import views
|
|
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
|
|
Class-based views
|
|
1. Add an import: from other_app.views import Home
|
|
2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
|
|
Including another URLconf
|
|
1. Import the include() function: from django.conf.urls import url, include
|
|
2. Add a URL to urlpatterns: url(r'^blog/', include('blog.urls'))
|
|
"""
|
|
from django.urls import re_path, include
|
|
from django.contrib import admin
|
|
from django.conf import settings
|
|
from django.conf.urls.static import static
|
|
|
|
admin.autodiscover()
|
|
|
|
urlpatterns = [
|
|
re_path(r'^jet/', include('jet.urls', 'jet')),
|
|
re_path(r'^jet/dashboard/', include('jet.dashboard.urls','jet-dashboard')),
|
|
re_path(r'^admin/', admin.site.urls),
|
|
|
|
re_path(r'^ckeditor/', include('ckeditor_uploader.urls')),
|
|
|
|
re_path('pages/', include('django.contrib.flatpages.urls')),
|
|
|
|
re_path('accounts/', include(('accounts_ext.urls', 'accounts_ext'), namespace='accounts_ext')),
|
|
re_path('accounts/', include('registration.backends.default.urls')),
|
|
re_path('accounts/', include(('django.contrib.auth.urls', 'django.contrib.auth'), namespace='accounts')),
|
|
|
|
re_path(r'', include(('index.urls', 'index'), namespace='index')),
|
|
re_path(r'^contact-us/', include(('contact_us.urls', 'contact_us'), namespace='contact_us')),
|
|
|
|
re_path(r'^products/', include(('products.urls', 'products'), namespace='products')),
|
|
re_path(r'^cabinet/', include(('cabinet.urls', 'cabinet'), namespace='cabinet')),
|
|
|
|
re_path(r'^cart/', include(('cart.urls', 'cart'), namespace='cart')),
|
|
|
|
# re_path(r'^order/', include('orders.urls', namespace='orders')),
|
|
# re_path(r'^discount/', include('discount.urls', namespace='discount')),
|
|
# re_path(r'^landing/', include('landing.urls')),
|
|
# re_path(r'^', include('orders.urls',namespace='orders')),
|
|
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) \
|
|
+ static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
|
|
|
if settings.DEBUG:
|
|
import debug_toolbar
|
|
urlpatterns = [
|
|
re_path(r'^__debug__/', include(debug_toolbar.urls))
|
|
] + urlpatterns
|
|
|