merge dev
[auf_rh_dae.git] / project / urls.py
index b37464a..cf14e27 100644 (file)
@@ -2,7 +2,7 @@
 from django.conf.urls.defaults import patterns, include, handler500, url
 from django.conf import settings
 from django.contrib import admin
 from django.conf.urls.defaults import patterns, include, handler500, url
 from django.conf import settings
 from django.contrib import admin
-
+from auf.django.emploi import settings as sett
 
 admin.autodiscover()
 
 
 admin.autodiscover()
 
@@ -14,23 +14,30 @@ urlpatterns = patterns(
     #url(r'^private_files/', include('private_files.urls')),
     url(r'^captcha/', include('captcha.urls')),
     url(r'^admin_tools/', include('admin_tools.urls')),
     #url(r'^private_files/', include('private_files.urls')),
     url(r'^captcha/', include('captcha.urls')),
     url(r'^admin_tools/', include('admin_tools.urls')),
+
+    # système
+    url(r'^$', 'project.views.accueil', name='accueil'),
+
     (r'^admin/', include(admin.site.urls)),
     (r'^admin/', include(admin.site.urls)),
+    url(r'^api/(?P<method>[a-z_-]+)/$', 'recrutement.api.api', 
+            name='recrutement_api'),
     (r'^connexion/$', 'django.contrib.auth.views.login'),
     (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
     (r'^connexion/$', 'django.contrib.auth.views.login'),
     (r'^deconnexion/$', 'django.contrib.auth.views.logout'),
-    (r'^dae/', include('project.dae.urls')),
-    (r'^recrutement/', include('project.recrutement.urls')),
-    url(r'^recrutement/affecter_evaluateurs_candidats/$', 
-        'recrutement.views.affecter_evaluateurs_candidats', 
-        name='affecter_evaluateurs_candidats'),
-    url(r'^recrutement/pieces/$', 'recrutement.views.postuler_appel_offre', name='pieces'),
-    url(r'^recrutement/evaluer_candidat/$', 
-        'recrutement.views.evaluer_candidat', name='evaluer_candidat'),
-    url(r'^recrutement/postuler_appel_offre/$', 
-        'recrutement.views.postuler_appel_offre', name='postuler_appel_offre'),
-    (r'^tinymce/', include('tinymce.urls')),    
-    (r'^', include('project.rh.urls')),
+    #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'^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')),
+    (r'^', include('project.rh.urls')),
+    url(r'^qbe/', include('django_qbe.urls')),
 )
 
 if settings.DEBUG:
 )
 
 if settings.DEBUG: