1
|
from django.conf.urls import patterns, include, url
|
2
|
from django.views.generic.simple import redirect_to
|
3
|
from django.contrib import admin
|
4
|
from django.contrib.auth.decorators import login_required
|
5
|
|
6
|
from urls_utils import decorated_includes
|
7
|
|
8
|
admin.autodiscover()
|
9
|
|
10
|
service_patterns = patterns('',
|
11
|
url(r'^$', 'calebasse.views.homepage', name='homepage'),
|
12
|
url(r'^agenda/', include('calebasse.agenda.urls')),
|
13
|
url(r'^dossiers/', include('calebasse.dossiers.urls')),
|
14
|
url(r'^actes/', include('calebasse.actes.urls')),
|
15
|
url(r'^facturation/', include('calebasse.facturation.urls')),
|
16
|
url(r'^personnes/', include('calebasse.personnes.urls')),
|
17
|
url(r'^ressources/', include('calebasse.ressources.urls')),
|
18
|
)
|
19
|
|
20
|
urlpatterns = patterns('',
|
21
|
# Examples:
|
22
|
# url(r'^calebasse/', include('aps42.foo.urls')),
|
23
|
|
24
|
# Uncomment the admin/doc line below to enable admin documentation:
|
25
|
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
|
26
|
|
27
|
(r'^$', redirect_to, { 'url': '/cmpp/' }),
|
28
|
url(r'^admin/', include(admin.site.urls)),
|
29
|
url(r'^accounts/', include('django.contrib.auth.urls')),
|
30
|
url(r'^(?P<service>[a-z-]+)/', decorated_includes(login_required,
|
31
|
include(service_patterns))),
|
32
|
url(r'^lookups/', include('ajax_select.urls')),
|
33
|
)
|