~maus-maintainers/maus-apps/main

« back to all changes in this revision

Viewing changes to src/mausweb/maus/urls.py

  • Committer: Mike Jackson
  • Date: 2012-02-09 16:48:55 UTC
  • Revision ID: michaelj@epcc.ed.ac.uk-20120209164855-olo4ppy0zuvvu5rk
Changes to support Apache/mod_wsgi. Renamed maus-web to mausweb. Changed relative imports to absolute. Added django.wsgi configuration file. Fixed small bug in views.py logic

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.conf.urls.defaults import patterns, include, url
 
2
 
 
3
# Enable admin
 
4
from django.contrib import admin
 
5
admin.autodiscover()
 
6
 
 
7
urlpatterns = patterns(
 
8
     # Common prefix to callbacks.
 
9
    'mausweb.maus.views',
 
10
    (r'^$', 'index'),
 
11
    (r'^(?P<image>.+)/graph$', 'graph'),
 
12
    (r'^(?P<image>.+)/thumb$', 'thumb'),
 
13
    (r'^(?P<image>.+)/eps$', 'eps'),
 
14
    (r'^(?P<image>.+)/png$', 'png'),
 
15
    (r'^(?P<image>.+)/$', 'raw'),
 
16
)