Mercurial > hg-website
annotate hgscm/urls.py @ 189:82ad1f98e8ac
some more proofreading.
author | Arne Babenhauserheide <bab@draketo.de> |
---|---|
date | Tue, 02 Jun 2009 23:48:35 +0200 |
parents | e8119809dfab |
children |
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 |
75 | 11 (r'^favicon\.ico$', 'django.views.static.serve', {'document_root': os.path.join(settings.MEDIA_ROOT), 'path': 'images/favicon.ico'}), |
26
b3d9cbb33d54
adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff
changeset
|
12 # 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
|
13 # (r'^admin/(.*)', admin.site.root), |
b3d9cbb33d54
adding basic django project, just renders the frontpage right now
Jesper Noehr <jesper@noehr.org>
parents:
diff
changeset
|
14 ) |