source: mauRepo/HPFos/trunk/src/HPFos/urls.py @ 8355

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/HPFos/trunk/src/HPFos/urls.py@8355
Revision 8355, 1.4 KB checked in by mnagni, 8 years ago (diff)

retrieve the hostURL from the request
minimal home page

  • Property svn:mime-type set to text/plain
Line 
1from django.conf.urls.defaults import patterns
2
3# Uncomment the next two lines to enable the admin:
4# from django.contrib import admin
5# admin.autodiscover()
6
7urlpatterns = patterns('',
8    # Examples:
9    # url(r'^$', 'HPFos.views.home', name='home'),
10    # url(r'^HPFos/', include('HPFos.foo.urls')),
11
12    # Uncomment the admin/doc line below to enable admin documentation:
13    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
14
15    # Uncomment the next line to enable the admin:
16    # url(r'^admin/', include(admin.site.urls)),
17   
18   
19)
20
21urlpatterns += patterns('HPFos.view.view',
22    (r'$', 'getHome'),
23)
24
25urlpatterns += patterns('HPFos.view.view',
26    (r'search/description$', 'getDescription'),
27)
28urlpatterns += patterns('HPFos.view.view',
29    (r'search/(\w+)/$', 'doSearchL0'),
30)
31
32urlpatterns += patterns('HPFos.view.view',
33    (r'search/(\w+)/description$', 'getDescription'),
34)
35urlpatterns += patterns('HPFos.view.view',
36    (r'search/(\w+)/(\w+)/$', 'doSearchL1'),
37)
38
39urlpatterns += patterns('HPFos.view.view',
40    (r'search/(\w+)/(\w+)/description$', 'getDescription'),
41)
42urlpatterns +=  patterns('HPFos.view.view',
43    (r'search/(\w+)/(\w+)/(\w+)/$', 'doSearchL2'),
44)
45
46urlpatterns += patterns('HPFos.view.view',
47    (r'search/(\w+)/(\w+)/(\w+)/description$', 'getDescription'),
48)
49urlpatterns += patterns('HPFos.view.view',
50    (r'search/(\w+)/(\w+)/(\w+)/(\w+)/$', 'doSearchL3'),
51)
Note: See TracBrowser for help on using the repository browser.