correct celery errors V03.00-rc.13
authorymh <ymh.work@gmail.com>
Fri, 03 Apr 2015 18:41:01 +0200
changeset 618 cb8b833ad122
parent 617 84ef2180d1fa
child 619 2695537badbe
correct celery errors
src/hdalab/services.py
src/hdalab/settings.py
--- a/src/hdalab/services.py	Fri Apr 03 14:31:43 2015 +0200
+++ b/src/hdalab/services.py	Fri Apr 03 18:41:01 2015 +0200
@@ -50,8 +50,14 @@
     rel_export_path = os.path.join(rel_export_path_dir, export_filename)
     
     if not os.path.exists(export_path_dir):
-        os.makedirs(export_path_dir)
-        
+            try:
+                os.makedirs(export_path_dir)
+            except OSError, e:
+                if e.errno != 17:
+                    raise   
+                # time.sleep might help here
+                pass
+            
     preview_dim = getattr(settings, 'RENKAN_PREVIEW_DIM', (500,500))
     preview_wait = getattr(settings, 'RENKAN_PREVIEW_WAIT', 5000)
 
--- a/src/hdalab/settings.py	Fri Apr 03 14:31:43 2015 +0200
+++ b/src/hdalab/settings.py	Fri Apr 03 18:41:01 2015 +0200
@@ -203,6 +203,8 @@
 SECURE_BROWSER_XSS_FILTER=True
 CSRF_COOKIE_SECURE=False
 
+SILENCED_SYSTEM_CHECKS = ['fields.W342'] # to silence a problem in registration module
+
 from hdalab.config import * #@UnusedWildImport
 
 if 'LOGIN_REDIRECT_URL' not in locals():