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

@ -847,7 +847,7 @@ def check_license_dependence(sender, **kwargs):
payment.user.profile.active = True
payment.user.profile.save()
bonus_license = create_bonus_license(lic)
if bonus_license:
emails.send_bonus_license_issued.delay(

@ -177,7 +177,8 @@ def upload_image(request):
if not os.path.exists(settings.MEDIA_ROOT + '/cache/images/'):
os.makedirs(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')
format_file, img_str = b64_text.split(';base64,')
ext = format_file.split('/')[-1]

@ -28,3 +28,13 @@ LOGGING = {}
LOCAL_APPS_LOGGERS = {}
# Disable all logging calls with levels less severe than or equal to 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