Beispiel #1
0
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from django.conf import settings
from django.conf.urls import handler404, include, url
from django.contrib import admin

from bedrock.base.monkeypatches import patch

patch()
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 = 'lib.bedrock_util.server_error_view'

urlpatterns = (
    # authenticated urls
    url(r'^admin/', include(admin.site.urls)),
    url(r'^rna/', include('rna.urls')),
    # Main pages
    url(r'^lightbeam/', include('bedrock.lightbeam.urls')),
    url(r'^foundation/', include('bedrock.foundation.urls')),
    url(r'^gigabit/', include('bedrock.gigabit.urls')),
    url(r'^grants/', include('bedrock.grants.urls')),
    url(r'^about/legal/', include('bedrock.legal.urls')),
    url(r'^persona/', include('bedrock.persona.urls')),
    url(r'^press/', include('bedrock.press.urls')),
    url(r'^privacy', include('bedrock.privacy.urls')),
    url(r'^styleguide/', include('bedrock.styleguide.urls')),
Beispiel #2
0
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from django.conf import settings
from django.conf.urls import handler404, include, url
from django.contrib import admin

from bedrock.base.monkeypatches import patch


patch()
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 = 'lib.bedrock_util.server_error_view'


urlpatterns = (
    # authenticated urls
    url(r'^admin/', include(admin.site.urls)),
    url(r'^rna/', include('rna.urls')),
    # Main pages
    url(r'^lightbeam/', include('bedrock.lightbeam.urls')),
    url(r'^foundation/', include('bedrock.foundation.urls')),
    url(r'^gigabit/', include('bedrock.gigabit.urls')),
    url(r'^grants/', include('bedrock.grants.urls')),
    url(r'^infobar/', include('bedrock.infobar.urls')),
    url(r'^about/legal/', include('bedrock.legal.urls')),
    url(r'^persona/', include('bedrock.persona.urls')),