Mercurial > hg-website
view 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 |
line wrap: on
line source
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), )