PJ
[auf_rh_dae.git] / project / urls.py
index d783d2c..adf1144 100644 (file)
@@ -27,8 +27,8 @@ urlpatterns = patterns(
     url(r'^captcha/', include('captcha.urls')),
     (r'^ajax_select/', include('ajax_select.urls')),
     (r'^tinymce/', include('tinymce.urls')),
-    (r'^prive/(?P<path>.*)$', 'django.views.static.serve', 
-        {'document_root': settings.PRIVE_MEDIA_ROOT}),
+    url(r'^prive/(?P<filename>.*)$', 'project.views.piece'),
+    #(r'^prive/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.PRIVE_MEDIA_ROOT}),
 
     # apps
     url(r'^dae/', include('project.dae.urls'), decorators=['django.contrib.auth.decorators.login_required']),