-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.py
74 lines (61 loc) · 2.53 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
from django.conf.urls import include, patterns, url
from django.conf import settings
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.conf.urls.static import static
from geonode.sitemap import LayerSitemap, MapSitemap
import geonode.proxy.urls
import geonode.maps.urls
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
js_info_dict = {
'domain': 'djangojs',
'packages': ('geonode',)
}
sitemaps = {
"layer": LayerSitemap,
"map": MapSitemap
}
urlpatterns = patterns('',
# Static pages
url(r'^$', 'django.views.generic.simple.direct_to_template',
{'template': 'index.html'}, name='home'),
url(r'^help/$', 'django.views.generic.simple.direct_to_template',
{'template': 'help.html'}, name='help'),
url(r'^developer/$', 'django.views.generic.simple.direct_to_template',
{'template': 'developer.html'}, name='dev'),
# Data views
(r'^data/', include('geonode.layers.urls')),
# Map views
(r'^maps/', include('geonode.maps.urls')),
# Social
(r'^comments/', include('dialogos.urls')),
(r'^ratings/', include('agon_ratings.urls')),
# Accounts
url(r'^accounts/ajax_login$', 'geonode.views.ajax_login',
name='auth_ajax_login'),
url(r'^accounts/ajax_lookup$', 'geonode.views.ajax_lookup',
name='auth_ajax_lookup'),
(r'^accounts/', include('registration.urls')),
(r'^profiles/', include('idios.urls')),
(r'^people/', include('geonode.people.urls')),
(r'^avatar/', include('avatar.urls')),
# Meta
url(r'^lang\.js$', 'django.views.generic.simple.direct_to_template',
{'template': 'lang.js', 'mimetype': 'text/javascript'}, name='lang'),
url(r'^jsi18n/$', 'django.views.i18n.javascript_catalog',
js_info_dict, name='jscat'),
url(r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap',
{'sitemaps': sitemaps}, name='sitemap'),
(r'^i18n/', include('django.conf.urls.i18n')),
(r'^admin/', include(admin.site.urls)),
# Catalogue
(r'^catalogue/', include('geonode.catalogue.urls')),
# Tsudat
(r'^tsudat/', include('tsudat.urls')),
(r'^notices/', include('notification.urls')),
)
urlpatterns += geonode.proxy.urls.urlpatterns
# Serve static files
urlpatterns += staticfiles_urlpatterns()
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)