Mercurial > hg-website
diff hgscm/urls.py @ 26:b3d9cbb33d54
adding basic django project, just renders the frontpage right now
author | Jesper Noehr <jesper@noehr.org> |
---|---|
date | Sun, 15 Feb 2009 19:58:03 +0100 |
parents | |
children | e8119809dfab |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hgscm/urls.py Sun Feb 15 19:58:03 2009 +0100 @@ -0,0 +1,13 @@ +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) }), + + # Uncomment the next line to enable the admin: + # (r'^admin/(.*)', admin.site.root), +)