comparison original/hgscm/urls.py @ 244:4b97017259f9

Move the original site into a single folder to reduce clutter.
author Steve Losh <steve@stevelosh.com>
date Wed, 23 Sep 2009 20:05:13 -0400
parents hgscm/urls.py@e8119809dfab
children
comparison
equal deleted inserted replaced
240:85a7a53db1a5 244:4b97017259f9
1 import os
2 from django.conf.urls.defaults import *
3 from django.conf import settings
4
5 urlpatterns = patterns('',
6 (r'^', include('hgscm.apps.www.urls')),
7
8 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
9 { 'document_root': os.path.join(settings.MEDIA_ROOT) }),
10
11 (r'^favicon\.ico$', 'django.views.static.serve', {'document_root': os.path.join(settings.MEDIA_ROOT), 'path': 'images/favicon.ico'}),
12 # Uncomment the next line to enable the admin:
13 # (r'^admin/(.*)', admin.site.root),
14 )