# HG changeset patch # User ymh # Date 1428079261 -7200 # Node ID cb8b833ad122616a1e78671ac8b5bad7e88c5805 # Parent 84ef2180d1fa7ae87de47b447447cfd73b1102aa correct celery errors diff -r 84ef2180d1fa -r cb8b833ad122 src/hdalab/services.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) diff -r 84ef2180d1fa -r cb8b833ad122 src/hdalab/settings.py --- 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():