merge recrutement + bypass rh.Poste dependancy
[auf_rh_dae.git] / project / urls.py
index 97bfab4..8633816 100644 (file)
@@ -1,27 +1,37 @@
 # -*- 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(
     '',
     (r'^$', 'project.views.index'),
 
 handler500 # Pyflakes
 
 urlpatterns = patterns(
     '',
     (r'^$', 'project.views.index'),
-    url(r'^captcha/', include('captcha.urls')),
-    url(r'^admin_tools/', include('admin_tools.urls')),
     (r'^admin/', include(admin.site.urls)),
     (r'^admin/', include(admin.site.urls)),
+    url(r'^api/(?P<method>[a-z_-]+)/(?P<offre_id>\d+)/$', 'recrutement.api.api', 
+            name='recrutement_api'),
+    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'),
+    #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}),
+
+    # apps
     (r'^dae/', include('project.dae.urls')),
     (r'^recrutement/', include('recrutement.urls')),
     (r'^dae/', include('project.dae.urls')),
     (r'^recrutement/', include('recrutement.urls')),
-    (r'^tinymce/', include('tinymce.urls')),    
     (r'^', include('project.rh.urls')),
     (r'^', include('project.rh.urls')),
-    (r'^prive/(?P<path>.*)$', 'django.views.static.serve', 
-        {'document_root': sett.PRIVE_MEDIA_ROOT}),
 )
 
 if settings.DEBUG:
 )
 
 if settings.DEBUG: