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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/MolesManager/urls.py@8267
Revision 8267, 1.7 KB checked in by gparton, 10 years ago (diff)

modification to Obs display to present keyword. Also alteration to urls.py to allow www.ceda.ac.uk/datacat/<GUID> to work without needing www.ceda.ac.uk/datacat/cedacat/<GUID>

Line 
1from django.conf.urls.defaults import patterns, url
2from settings import SERVE_STATIC_CONTENT, STATIC_ROOT
3
4# Uncomment the next two lines to enable the admin:
5# from django.contrib import admin
6# admin.autodiscover()
7
8urlpatterns = patterns('',
9    # Examples:
10    # url(r'^$', 'MolesManager.views.home', name='home'),
11    # url(r'^MolesManager/', include('MolesManager.foo.urls')),
12
13    # Uncomment the admin/doc line below to enable admin documentation:
14    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
15
16    # Uncomment the next line to enable the admin:
17    # url(r'^admin/', include(admin.site.urls)),
18)
19
20urlpatterns += patterns('MolesManager.views.cedaObservationView',
21
22    (r'cov/(\d+)$', 'coView'),
23)
24
25urlpatterns += patterns('MolesManager.views.cedacat',
26
27    (r'(\w{32})$', 'cedacat'),
28)
29
30urlpatterns += patterns('MolesManager.views.cedaSearch',
31
32    (r'search/$', 'coSearch'),
33    )
34
35
36urlpatterns += patterns('MolesManager.views',
37    (r'^$', 'index.home'),
38)
39
40if SERVE_STATIC_CONTENT:
41    urlpatterns += patterns('',
42       url(r'css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css' , 'show_indexes': True}),
43    )
44
45    urlpatterns += patterns('',
46       url(r'css/960/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css/960' , 'show_indexes': True}),
47    )
48
49    urlpatterns += patterns('',
50       url(r'img/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/img' , 'show_indexes': True}),
51    )
52
53    urlpatterns += patterns('',
54       url(r'js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/js' , 'show_indexes': True}),
55    )
56
57#urlpatterns += staticfiles_urlpatterns()
58
Note: See TracBrowser for help on using the repository browser.