annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
1 import os
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
2 from django.conf.urls.defaults import *
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
3 from django.conf import settings
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
4
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
5 urlpatterns = patterns('',
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
6 (r'^', include('hgscm.apps.www.urls')),
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
7
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
8 (r'^media/(?P<path>.*)$', 'django.views.static.serve',
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
9 { 'document_root': os.path.join(settings.MEDIA_ROOT) }),
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
10
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
11 # Uncomment the next line to enable the admin:
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
12 # (r'^admin/(.*)', admin.site.root),
b3d9cbb33d54 adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff changeset
13 )