urls.py 1.83 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
20
from ajax_select import urls as ajax_select_urls
Skia's avatar
Skia committed
21

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

Skia's avatar
Skia committed
25
urlpatterns = [
Skia's avatar
Skia committed
26
    url(r'^', include('core.urls', namespace="core", app_name="core")),
27
    url(r'^subscription/', include('subscription.urls', namespace="subscription", app_name="subscription")),
28
    url(r'^club/', include('club.urls', namespace="club", app_name="club")),
Skia's avatar
Skia committed
29
    url(r'^counter/', include('counter.urls', namespace="counter", app_name="counter")),
Skia's avatar
Skia committed
30
    url(r'^accounting/', include('accounting.urls', namespace="accounting", app_name="accounting")),
Skia's avatar
Skia committed
31
    url(r'^eboutic/', include('eboutic.urls', namespace="eboutic", app_name="eboutic")),
Skia's avatar
Skia committed
32
    url(r'^launderette/', include('launderette.urls', namespace="launderette", app_name="launderette")),
Sli's avatar
Sli committed
33
    url(r'^api/v1/', include('api.urls', namespace="api", app_name="api")),
Skia's avatar
Skia committed
34
    url(r'^admin/', include(admin.site.urls)),
35
    url(r'^ajax_select/', include(ajax_select_urls)),
Skia's avatar
Skia committed
36
    url(r'^i18n/', include('django.conf.urls.i18n')),
Skia's avatar
Skia committed
37
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) # TODO: remove me for production!!!
Skia's avatar
Skia committed
38