source: mauRepo/MolesManager/trunk/cedaMoles/MolesManager/urls.py @ 8576

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

Incomplete - # 22554: "Remove the ""FollowSymLinks"""
 http://team.ceda.ac.uk/trac/ceda/ticket/22554

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