urls.py 883 B

123456789101112131415161718192021222324
  1. from django.conf.urls import patterns, include, url
  2. from django.contrib import admin
  3. admin.autodiscover()
  4. urlpatterns = patterns('',
  5. url(r'^', include('misago.urls')),
  6. # Uncomment next line if you plan to use Django admin for 3rd party apps
  7. #url(r'^django-admin/', include(admin.site.urls)),
  8. )
  9. # Error Handlers
  10. # Misago needs those handlers to deal with errors raised by it's middlewares
  11. # If you replace those handlers with custom ones, make sure you decorate them
  12. # functions with shared_403_exception_handler or shared_404_exception_handler
  13. # decorators that are defined in misago.views.errorpages module!
  14. handler403 = 'misago.views.errorpages.permission_denied'
  15. handler404 = 'misago.views.errorpages.page_not_found'
  16. # Serve static files in development
  17. from django.contrib.staticfiles.urls import staticfiles_urlpatterns
  18. urlpatterns += staticfiles_urlpatterns()