Mercurial > hg-website
annotate original/hgscm/urls.py @ 283:b7d5f97e1034
simplify urls: point to mercurial.selenic.com, remove index.cgi from wiki urls
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Mon, 02 Nov 2009 15:39:20 +0100 |
parents | 4b97017259f9 |
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 ) |