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

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

Complete - # 22551: List resources / display single file
 http://team.ceda.ac.uk/trac/ceda/ticket/22551

Starts to update #22554. Works correctly on a localhost base

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
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
21#urlpatterns += patterns('MolesManager.views.cedaObservationView',
22#
23#    (r'cov/(\d+)$', 'objView'),
24#)
25
26#urlpatterns += 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#urlpatterns += patterns('MolesManager.views.index',
36#
37#    (r'cov/$', 'home'),
38#)
39
40urlpatterns += patterns('MolesManager.views.cedacat',
41
42    (r'(\w{32})$', 'cedacat'),
43)
44
45urlpatterns += patterns('MolesManager.views.cedaSearch',
46
47    (r'search/$',  'coSearch'),
48     #redirect_to, {'url': 'http://www.ceda.ac.uk'}),#'coSearchRedirect'),
49    )
50
51
52urlpatterns += patterns('MolesManager.views',
53    (r'^$', 'index.home'),
54)
55
56urlpatterns += staticfiles_urlpatterns()
Note: See TracBrowser for help on using the repository browser.