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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/MolesManager/urls.py@8141
Revision 8141, 1.5 KB checked in by mnagni, 8 years ago (diff)
Line 
1from django.conf.urls.defaults import patterns, url
2from MolesManager.settings import STATIC_ROOT
3
4# Uncomment the next two lines to enable the admin:
5# from django.contrib import admin
6# admin.autodiscover()
7
8urlpatterns = patterns('',
9    # Examples:
10    # url(r'^$', 'MolesManager.views.home', name='home'),
11    # url(r'^MolesManager/', include('MolesManager.foo.urls')),
12
13    # Uncomment the admin/doc line below to enable admin documentation:
14    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
15
16    # Uncomment the next line to enable the admin:
17    # url(r'^admin/', include(admin.site.urls)),
18)
19
20urlpatterns += patterns('MolesManager.views.cedaObservationView',
21
22    (r'cov/$', 'coView'),
23)
24
25urlpatterns += patterns('MolesManager.views.cedaSearch',
26
27    (r'search/$', 'coSearch'),
28)
29
30
31urlpatterns += patterns('MolesManager.views',
32    (r'^$', 'index.home'),
33)
34
35urlpatterns += patterns('',
36    url(r'css/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css' , 'show_indexes': True}),
37)
38
39urlpatterns += patterns('',
40    url(r'css/960/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/css/960' , 'show_indexes': True}),
41)
42
43urlpatterns += patterns('',
44    url(r'img/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/img' , 'show_indexes': True}),
45)
46
47urlpatterns += patterns('',
48    url(r'js/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_ROOT+'/js' , 'show_indexes': True}),
49)
50#urlpatterns += staticfiles_urlpatterns()
Note: See TracBrowser for help on using the repository browser.