Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

49 lines (39 sloc) 1.655 kB
from django.conf import settings
from django.conf.urls.defaults import *
from funfactory.monkeypatches import patch
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
# The default django 500 handler doesn't run the ContextProcessors, which breaks
# the base template page. So we replace it with one that does!
handler500 = 'bedrock_util.server_error_view'
urlpatterns = patterns('',
# Main pages
(r'^firefoxos/', include('firefoxos.urls')),
(r'^webmaker/', include('webmaker.urls')),
(r'^grants/', include('grants.urls')),
(r'^collusion/', include('collusion.urls')),
(r'^apps/', include('marketplace.urls')),
(r'^persona/', include('persona.urls')),
(r'^styleguide/', include('styleguide.urls')),
(r'', include('redirects.urls')),
(r'', include('firefox.urls')),
(r'', include('mozorg.urls')),
(r'', include('privacy.urls')),
(r'', include('research.urls')),
# L10n example.
(r'^l10n_example/', include('l10n_example.urls')),
# Uncomment the admin/doc line below to enable admin documentation:
# (r'^admin/doc/', include('django.contrib.admindocs.urls')),
# Uncomment the next line to enable the admin:
# (r'^admin/', include(,
## In DEBUG mode, serve media files through Django.
if settings.DEBUG:
# Remove leading and trailing slashes so the regex matches.
media_url = settings.MEDIA_URL.lstrip('/').rstrip('/')
urlpatterns += patterns('',
(r'^%s/(?P<path>.*)$' % media_url, 'django.views.static.serve',
{'document_root': settings.MEDIA_ROOT}),
Jump to Line
Something went wrong with that request. Please try again.