dae+rh
[auf_rh_dae.git] / project / urls.py
index 171b2dc..60284fc 100644 (file)
@@ -1,23 +1,20 @@
 # -*- encoding: utf-8 -*
 # -*- encoding: utf-8 -*
-from django.conf.urls.defaults import patterns, include, handler500, url
+from django.conf.urls.defaults import patterns, include, handler500, handler404, url
 from django.conf import settings
 from django.contrib import admin
 from auf.django.emploi import settings as sett
 
 from django.conf import settings
 from django.contrib import admin
 from auf.django.emploi import settings as sett
 
+from auf.django import permissions
+
 admin.autodiscover()
 admin.autodiscover()
+permissions.autodiscover()
 
 handler500 # Pyflakes
 
 urlpatterns = patterns(
     '',
 
 handler500 # Pyflakes
 
 urlpatterns = patterns(
     '',
-    (r'^$', 'project.views.accueil'),
-    #url(r'^private_files/', include('private_files.urls')),
-    url(r'^captcha/', include('captcha.urls')),
+    (r'^$', 'project.views.index'),
     url(r'^admin_tools/', include('admin_tools.urls')),
     url(r'^admin_tools/', include('admin_tools.urls')),
-
-    # système
-    url(r'^$', 'project.views.accueil', name='accueil'),
-
     (r'^admin/', include(admin.site.urls)),
     url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api', 
             name='recrutement_api'),
     (r'^admin/', include(admin.site.urls)),
     url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api', 
             name='recrutement_api'),
@@ -27,19 +24,14 @@ urlpatterns = patterns(
     (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
     #url(r'^private_files/', include('private_files.urls')),
     url(r'^captcha/', include('captcha.urls')),
     (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
     #url(r'^private_files/', include('private_files.urls')),
     url(r'^captcha/', include('captcha.urls')),
-    url(r'^admin_tools/', include('admin_tools.urls')),
     (r'^tinymce/', include('tinymce.urls')),
     (r'^prive/(?P<path>.*)$', 'django.views.static.serve', 
         {'document_root': settings.PRIVE_MEDIA_ROOT}),
     (r'^tinymce/', include('tinymce.urls')),
     (r'^prive/(?P<path>.*)$', 'django.views.static.serve', 
         {'document_root': settings.PRIVE_MEDIA_ROOT}),
-    url(r'^404$', 'project.views.erreur404', name='404'),
-    url(r'^500$', 'project.views.erreur500', name='500'),
-    url(r'^550$', 'project.views.erreur550', name='550'),
 
     # apps
     (r'^dae/', include('project.dae.urls')),
     (r'^recrutement/', include('recrutement.urls')),
 
     # apps
     (r'^dae/', include('project.dae.urls')),
     (r'^recrutement/', include('recrutement.urls')),
-    (r'^', include('project.rh.urls')),
-    url(r'^qbe/', include('django_qbe.urls')),
+    (r'^rh/', include('project.rh.urls')),
 )
 
 if settings.DEBUG:
 )
 
 if settings.DEBUG: