diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/original/hgscm/urls.py	Wed Sep 23 20:05:13 2009 -0400
@@ -0,0 +1,14 @@
+import os
+from django.conf.urls.defaults import *
+from django.conf import settings
+
+urlpatterns = patterns('',
+    (r'^', include('hgscm.apps.www.urls')),
+
+    (r'^media/(?P<path>.*)$', 'django.views.static.serve', 
+        { 'document_root': os.path.join(settings.MEDIA_ROOT) }),
+
+    (r'^favicon\.ico$', 'django.views.static.serve', {'document_root': os.path.join(settings.MEDIA_ROOT), 'path': 'images/favicon.ico'}),
+    # Uncomment the next line to enable the admin:
+    # (r'^admin/(.*)', admin.site.root),
+)