-
Notifications
You must be signed in to change notification settings - Fork 59
/
urls.py
executable file
·56 lines (45 loc) · 2.27 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 import settings
from django.conf.urls.defaults import *
from django.contrib import databrowse
from django.contrib import admin
admin.autodiscover()
from registration.views import register
urlpatterns = patterns('',
(r'^_admin_/', include(admin.site.urls)),
(r'^databrowse/(.*)', databrowse.site.root),
(r'^static/css/images/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_DATA + "/images/" + settings.SITE_LOCATION}),
(r'^static/css/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_DATA + "/css/" + settings.SITE_LOCATION}),
(r'^static/images/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_DATA + "/images/" + settings.SITE_LOCATION}),
#(r'^static/js/(?P<path>.*)$', 'django.views.static.serve',
# {'document_root': settings.STATIC_DATA + "/js/" + settings.SITE_LOCATION}),
(r'^static/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.STATIC_DATA}),
(r'^Nodes/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT + "/Nodes"}),
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
(r'^admin_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': settings.ADMIN_MEDIA_ROOT}),
(r'^comments/', include('threadedcomments.urls')),
(r'^', include('treemap.urls')),
(r'^importer/', include('importer.urls', namespace='importer')),
#(r'^', include('qs_tiles.urls')),
# using new 0.8 beta with "backends" support
# http://docs.b-list.org/django-registration/0.8/
# override just the /register view to customize form and save actions...
url(r'^accounts/register/$',register,
{ 'backend': 'registration_backend.TreeBackend' },
name='registration_register'),
# dispatch the remainder of the urls to the default backend...
(r'^accounts/', include('registration.backends.default.urls')),
(r'^profiles/', include('profiles.urls')),
(r'^treekey/', include('treekey.urls')),
(r'^api/v0.1/', include('api.urls')),
)
if 'polygons' in settings.INSTALLED_APPS:
urlpatterns += patterns('',
(r'^polygons/', include('polygons.urls')),
)