source: mauRepo/MolesManager/trunk/src/MolesManager/urls.py @ 8445

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/MolesManager/urls.py@8445
Revision 8445, 2.2 KB checked in by mnagni, 8 years ago (diff)

Complete - # 22489: CEDA Observation Collection - phenomenonTime
 http://team.ceda.ac.uk/trac/ceda/ticket/22489
Complete - # 22488: CEDA Observation Collection - Geographical Extent
 http://team.ceda.ac.uk/trac/ceda/ticket/22488

Line 
1from django.conf.urls.defaults import patterns, url
2from settings import SERVE_STATIC_CONTENT, STATIC_ROOT
3from django.views.generic.simple import redirect_to
4
5# Uncomment the next two lines to enable the admin:
6# from django.contrib import admin
7# admin.autodiscover()
8
9urlpatterns = patterns('',
10    # Examples:
11    # url(r'^$', 'MolesManager.views.home', name='home'),
12    # url(r'^MolesManager/', include('MolesManager.foo.urls')),
13
14    # Uncomment the admin/doc line below to enable admin documentation:
15    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
16
17    # Uncomment the next line to enable the admin:
18    # url(r'^admin/', include(admin.site.urls)),
19)
20
21urlpatterns += patterns('MolesManager.views.cedaObservationView',
22
23    (r'cov/(\d+)$', 'objView'),
24)
25
26urlpatterns += patterns('MolesManager.views.cedaObservationCollectionView',
27
28    (r'cov2/(\d+)$', 'objView'),
29)
30
31urlpatterns += patterns('MolesManager.views.cedaSearch',
32    (r'guid/(\w+)$', 'getResponseByGuid'),
33)
34
35
36
37urlpatterns += patterns('MolesManager.views.cedaBrowse',
38
39    (r'browse/(\d+)$', 'browseView'),
40)
41
42urlpatterns += patterns('MolesManager.views.index',
43
44    (r'cov/$', 'home'),
45)
46
47urlpatterns += patterns('MolesManager.views.cedacat',
48
49    (r'(\w{32})$', 'cedacat'),
50)
51
52urlpatterns += patterns('MolesManager.views.cedaSearch',
53
54    (r'search/$',  'coSearch'),
55     #redirect_to, {'url': 'http://www.ceda.ac.uk'}),#'coSearchRedirect'),
56    )
57
58
59urlpatterns += patterns('MolesManager.views',
60    (r'^$', 'index.home'),
61)
62
63if SERVE_STATIC_CONTENT:
64    urlpatterns += patterns('',
65       url(r'css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css' , 'show_indexes': True}),
66    )
67
68    urlpatterns += patterns('',
69       url(r'css/960/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css/960' , 'show_indexes': True}),
70    )
71
72    urlpatterns += patterns('',
73       url(r'img/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/img' , 'show_indexes': True}),
74    )
75
76    urlpatterns += patterns('',
77       url(r'js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/js' , 'show_indexes': True}),
78    )
79
80#urlpatterns += staticfiles_urlpatterns()
81
Note: See TracBrowser for help on using the repository browser.