# Admin URLs. url(r"^admin/", include(admin.site.urls)), # Permalink redirection service. url(r"^r/(?P<content_type_id>\d+)-(?P<object_id>[^/]+)/$", "django.contrib.contenttypes.views.shortcut", name="permalink_redirect"), # Google sitemap service. url(r"^sitemap.xml$", "django.contrib.sitemaps.views.index", {"sitemaps": registered_sitemaps}), url(r"^sitemap-(?P<section>.+)\.xml$", "django.contrib.sitemaps.views.sitemap", {"sitemaps": registered_sitemaps}), # Basic robots.txt. url(r"^robots.txt$", TextTemplateView.as_view(template_name="robots.txt")), # There's no favicon here! url(r"^favicon.ico$", generic.RedirectView.as_view()), ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if settings.DEBUG: urlpatterns += patterns( "", url("^404/$", generic.TemplateView.as_view(template_name="404.html")), url("^500/$", generic.TemplateView.as_view(template_name="500.html")), ) handler500 = "cms.views.handler500"
# Admin URLs. url(r'^admin/password_change/$', 'django.contrib.auth.views.password_change', {'password_change_form': CMSPasswordChangeForm}, name='password_change'), url(r'^admin/password_change/done/$', 'django.contrib.auth.views.password_change_done', name='password_change_done'), url(r"^admin/", include(admin.site.urls)), # Permalink redirection service. url(r"^r/(?P<content_type_id>\d+)-(?P<object_id>[^/]+)/$", "django.contrib.contenttypes.views.shortcut", name="permalink_redirect"), # Google sitemap service. url(r"^sitemap.xml$", "django.contrib.sitemaps.views.index", {"sitemaps": registered_sitemaps}), url(r"^sitemap-(?P<section>.+)\.xml$", "django.contrib.sitemaps.views.sitemap", {"sitemaps": registered_sitemaps}), # Basic robots.txt. url(r"^robots.txt$", TextTemplateView.as_view(template_name="robots.txt")), # There's no favicon here! url(r"^favicon.ico$", generic.RedirectView.as_view()), url(r'^', include('devoweled.apps.words.urls', namespace="words")), ) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) if settings.DEBUG: urlpatterns += patterns( "", url("^404/$", generic.TemplateView.as_view(template_name="404.html")), url("^500/$", generic.TemplateView.as_view(template_name="500.html")), )
url(r'^admin/password_change/done/$', auth_views.password_change_done, name='password_change_done'), url(r'^admin/', include(admin.site.urls)), url(r'^admin/', include('social_django.urls', namespace='social')), url(r'^admin/pages/page/sections.js$', sections_js, name='admin_sections_js'), # Permalink redirection service. url(r'^r/(?P<content_type_id>\d+)-(?P<object_id>[^/]+)/$', contenttypes_views.shortcut, name='permalink_redirect'), url(r'^assets/', include('django_lazy_image.urls', namespace='assets')), # Google sitemap service. url(r'^sitemap.xml$', sitemaps_views.index, {'sitemaps': registered_sitemaps}, name='django.contrib.sitemaps.views.sitemap'), url(r'^sitemap-(?P<section>.+)\.xml$', sitemaps_views.sitemap, {'sitemaps': registered_sitemaps}, name='django.contrib.sitemaps.views.sitemap'), # Basic robots.txt. url(r'^robots.txt$', TextTemplateView.as_view(template_name='robots.txt')), # There's no favicon here! url(r'^favicon.ico$', generic.RedirectView.as_view(permanent=True)), ] + static( settings.MEDIA_URL, document_root=settings.MEDIA_ROOT ) if settings.DEBUG: urlpatterns += [ url(r'^404/$', generic.TemplateView.as_view(template_name='404.html')), url(r'^500/$', generic.TemplateView.as_view(template_name='500.html')), url(r'^frontend/$', FrontendView.as_view()), url(r'^frontend/(?P<slug>[\w-]+)/$', FrontendView.as_view()) ]