Mercurial > hg-website
view hgscm/urls.py @ 233:a645ed99c6c6
Fix Mac OS downloads
The agent usually has a "Mac OS X..." string. As system is used as a regex
to check for the agent we have to use the proper system identifier.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Sun, 02 Aug 2009 23:09:16 +0200 |
parents | e8119809dfab |
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), )