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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/MolesManager/urls.py@8280
Revision 8280, 1.9 KB checked in by gparton, 7 years ago (diff)
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.index',
27
28    (r'cov/$', 'home'),
29)
30
31urlpatterns += patterns('MolesManager.views.cedacat',
32
33    (r'(\w{32})$', 'cedacat'),
34)
35
36urlpatterns += patterns('MolesManager.views.cedaSearch',
37
38    (r'search/$',  'coSearch'),
39     #redirect_to, {'url': 'http://www.ceda.ac.uk'}),#'coSearchRedirect'),
40    )
41
42
43urlpatterns += patterns('MolesManager.views',
44    (r'^$', 'index.home'),
45)
46
47if SERVE_STATIC_CONTENT:
48    urlpatterns += patterns('',
49       url(r'css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css' , 'show_indexes': True}),
50    )
51
52    urlpatterns += patterns('',
53       url(r'css/960/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css/960' , 'show_indexes': True}),
54    )
55
56    urlpatterns += patterns('',
57       url(r'img/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/img' , 'show_indexes': True}),
58    )
59
60    urlpatterns += patterns('',
61       url(r'js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/js' , 'show_indexes': True}),
62    )
63
64#urlpatterns += staticfiles_urlpatterns()
65
Note: See TracBrowser for help on using the repository browser.