urls.py 1.15 KB
Newer Older
Skia's avatar
Skia committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
"""sith URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import include, url
from django.contrib import admin
Skia's avatar
Skia committed
18 19
from django.conf.urls.static import static
from django.conf import settings
Skia's avatar
Skia committed
20

21 22 23
handler403 = "core.views.forbidden"
handler404 = "core.views.not_found"

Skia's avatar
Skia committed
24
urlpatterns = [
Skia's avatar
Skia committed
25
    url(r'^', include('core.urls', namespace="core", app_name="core")),
26
    url(r'^subscription/', include('subscription.urls', namespace="asso", app_name="subscription")),
Skia's avatar
Skia committed
27
    url(r'^admin/', include(admin.site.urls)),
Skia's avatar
Skia committed
28
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) # TODO: remove me for production!!!