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

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

amendments to search function on base.html, update of search page and modification to display

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+)$', 'coView'),
24)
25
26urlpatterns += patterns('MolesManager.views.cedacat',
27
28    (r'(\w{32})$', 'cedacat'),
29)
30
31urlpatterns += patterns('MolesManager.views.cedaSearch',
32
33    (r'search/$',  'coSearch'),
34     #redirect_to, {'url': 'http://www.ceda.ac.uk'}),#'coSearchRedirect'),
35    )
36
37
38urlpatterns += patterns('MolesManager.views',
39    (r'^$', 'index.home'),
40)
41
42if SERVE_STATIC_CONTENT:
43    urlpatterns += patterns('',
44       url(r'css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css' , 'show_indexes': True}),
45    )
46
47    urlpatterns += patterns('',
48       url(r'css/960/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css/960' , 'show_indexes': True}),
49    )
50
51    urlpatterns += patterns('',
52       url(r'img/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/img' , 'show_indexes': True}),
53    )
54
55    urlpatterns += patterns('',
56       url(r'js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/js' , 'show_indexes': True}),
57    )
58
59#urlpatterns += staticfiles_urlpatterns()
60
Note: See TracBrowser for help on using the repository browser.