Schule als Staat Projekt Web, Dokumente, etc.
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

43 řádky
1.6KB

  1. """sas_web URL Configuration
  2. The `urlpatterns` list routes URLs to views. For more information please see:
  3. https://docs.djangoproject.com/en/1.8/topics/http/urls/
  4. Examples:
  5. Function views
  6. 1. Add an import: from my_app import views
  7. 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
  8. Class-based views
  9. 1. Add an import: from other_app.views import Home
  10. 2. Add a URL to urlpatterns: url(r'^$', Home.as_view(), name='home')
  11. Including another URLconf
  12. 1. Add an import: from blog import urls as blog_urls
  13. 2. Add a URL to urlpatterns: url(r'^blog/', include(blog_urls))
  14. """
  15. from django.conf.urls import include, url
  16. from django.contrib import admin
  17. from django.conf.urls.static import static
  18. from django.conf import settings
  19. from .views import error_400, error_403, error_404, error_500
  20. urlpatterns = static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
  21. urlpatterns += [
  22. url(r'^wahl/', include('news.urls',
  23. namespace='wahl',
  24. app_name='news')),
  25. url(r'^meingoethopia/', include('meingoethopia.urls',
  26. namespace='meingoethopia',
  27. app_name='meingoethopia')),
  28. url(r'^datenbank/', include('datenbank.urls', app_name='datenbank',
  29. namespace='datenbank')),
  30. url(r'^admin/', include(admin.site.urls)),
  31. url(r'^captcha/', include('captcha.urls')),
  32. url(r'^', include('startpage.urls', namespace='startpage', app_name='startpage')),
  33. ]
  34. handler400 = error_400
  35. handler403 = error_403
  36. handler404 = error_404
  37. handler500 = error_500