prod
Dmitriy Shesterkin 9 years ago
parent 8173a01dbe
commit c9574ebe99
  1. 3
      src/customer/views/profile.py
  2. 10
      src/dokumentor/settings/testing.py

@ -177,7 +177,8 @@ def upload_image(request):
if not os.path.exists(settings.MEDIA_ROOT + '/cache/images/'): if not os.path.exists(settings.MEDIA_ROOT + '/cache/images/'):
os.makedirs(settings.MEDIA_ROOT + '/cache/images/') os.makedirs(settings.MEDIA_ROOT + '/cache/images/')
tmp_dir = tempfile.mkdtemp('img_tmp', settings.MEDIA_ROOT + '/cache/images/') tmp_dir = tempfile.mkdtemp('img_tmp', settings.MEDIA_ROOT + '/cache/images/')
os.chmod(tmp_dir, 755) if not settings.DEBUG:
os.chmod(tmp_dir, 755)
b64_text = request.POST.get('image') b64_text = request.POST.get('image')
format_file, img_str = b64_text.split(';base64,') format_file, img_str = b64_text.split(';base64,')
ext = format_file.split('/')[-1] ext = format_file.split('/')[-1]

@ -28,3 +28,13 @@ LOGGING = {}
LOCAL_APPS_LOGGERS = {} LOCAL_APPS_LOGGERS = {}
# Disable all logging calls with levels less severe than or equal to CRITICAL # Disable all logging calls with levels less severe than or equal to CRITICAL
logging.disable(logging.CRITICAL) logging.disable(logging.CRITICAL)
# Robokassa
ROBOKASSA_LOGIN = 'Dokumentor'
# Test
ROBOKASSA_PASSWORD1 = 'ZtcV4jzgJ5qI2Cx7Rc4a'
ROBOKASSA_PASSWORD2 = 'iuJI7adaUGGE96QKz17a'
ROBOKASSA_USE_POST = True
ROBOKASSA_STRICT_CHECK = False
ROBOKASSA_TEST_MODE = True

Loading…
Cancel
Save