-
Notifications
You must be signed in to change notification settings - Fork 113
/
urls.py
executable file
·90 lines (72 loc) · 2.93 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
from django.conf.urls import patterns, include, url
from django.conf import settings
from django.contrib import admin
from filebrowser.sites import site
from nodeshot.community.profiles.settings import EMAIL_CONFIRMATION
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls))
)
if 'smuggler' in settings.INSTALLED_APPS:
# smuggler must be before admin
urlpatterns = patterns('',
url(r'^admin/', include('smuggler.urls'))
) + urlpatterns
if 'filebrowser' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'^admin/filebrowser/', include(site.urls)),
)
if 'rosetta' in settings.INSTALLED_APPS:
# rosetta must be before admin
urlpatterns = patterns('',
url(r'^admin/translations/', include('rosetta.urls')),
) + urlpatterns
if 'nodeshot.interop.sync' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'', include('nodeshot.interop.sync.urls')),
)
if settings.DEBUG and settings.SERVE_STATIC:
urlpatterns += patterns('django.contrib.staticfiles.views',
url(r'^static/(?P<path>.*)$', 'serve'),
url(r'^media/(?P<path>.*)$', 'serve'),
)
if 'social.apps.django_app.default' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'', include('social.apps.django_app.urls', namespace='social')),
)
if 'grappelli' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'^grappelli/', include('grappelli.urls')),
)
if 'nodeshot.core.websockets' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'^websockets/', include('nodeshot.core.websockets.urls')),
)
if 'nodeshot.community.profiles' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'^account/password/reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<key>.+)/$',
'nodeshot.community.profiles.html_views.password_reset_from_key',
name='account_password_reset_from_key'),
)
if 'nodeshot.community.profiles' in settings.INSTALLED_APPS and EMAIL_CONFIRMATION:
urlpatterns += patterns('',
url(r'^confirm_email/(\w+)/$',
'nodeshot.community.profiles.html_views.confirm_email',
name='emailconfirmation_confirm_email'),
)
# include 'nodeshot.core.api.urls'
if 'nodeshot.core.api' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'', include('nodeshot.core.api.urls')),
)
if 'nodeshot.ui.open311_demo' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'^open311/$', include('nodeshot.ui.open311_demo.urls', namespace='open311_demo', app_name='open311_demo')),
)
if 'nodeshot.ui.default' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
url(r'', include('nodeshot.ui.default.urls', namespace='ui', app_name='ui')),
)
urlpatterns += patterns('',
url(r'^jsi18n/$', 'nodeshot.core.base.views.jsi18n', {'packages': ('nodeshot.ui.default',)}, name='jsi18n')
)