forked from zaviichen/mshwines
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathurls.py
56 lines (42 loc) · 1.6 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from django.conf.urls import include, url
from django.conf import settings
from django.contrib import admin
from django.conf.urls.static import static
#from stores.app import application as stores_app
#from stores.dashboard.app import application as dashboard_app
from apps.app import application
from datacash.dashboard.app import application as datacash_app
# These need to be imported into this namespace
from oscar.views import handler500, handler404, handler403 # noqa
js_info_dict = {
'packages': ('stores',),
}
admin.autodiscover()
urlpatterns = [
url(r'^admin/', include(admin.site.urls)),
url(r'^i18n/', include('django.conf.urls.i18n')),
url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
# Stores extension
#url(r'^stores/', include(stores_app.urls)),
#url(r'^dashboard/stores/', include(dashboard_app.urls)),
# PayPal extension
url(r'^checkout/paypal/', include('paypal.express.urls')),
# Datacash extension
url(r'^dashboard/datacash/', include(datacash_app.urls)),
# About static resource
url(r'^about/', include('apps.about.urls')),
# Club information
url(r'^club/', include('apps.club.urls')),
# News information
url(r'^news/', include('apps.news.urls')),
# Analytics information
url(r'^status/', include('apps.status.urls')),
url(r'', include(application.urls)),
]
if settings.DEBUG:
import debug_toolbar
urlpatterns += static(settings.MEDIA_URL,
document_root=settings.MEDIA_ROOT)
urlpatterns += [
url(r'^__debug__/', include(debug_toolbar.urls)),
]