2016-04-02 08:33:34 +03:00
|
|
|
#!/usr/bin/env python
|
2015-11-26 23:49:41 +03:00
|
|
|
|
2016-04-02 08:33:34 +03:00
|
|
|
from SWSCloudCore import models
|
2015-11-26 23:49:41 +03:00
|
|
|
|
|
|
|
|
|
|
|
def create_key(key, val=''):
|
|
|
|
if models.Settings.select().where(models.Settings.key == key).count() == 0:
|
|
|
|
models.Settings.create(key=key, val=val)
|
|
|
|
else:
|
2024-12-10 21:05:37 +03:00
|
|
|
print('key %s already exists' % key)
|
2015-11-26 23:49:41 +03:00
|
|
|
|
|
|
|
|
|
|
|
create_key('bonus', '300')
|
2015-12-04 14:25:11 +03:00
|
|
|
create_key('PAY_ROBOKASSA_MODE', '')
|
2015-12-01 02:45:57 +03:00
|
|
|
create_key('PAY_ROBOKASSA_LOGIN', '')
|
2015-11-26 23:49:41 +03:00
|
|
|
create_key('PAY_ROBOKASSA_PASSWORD1', '')
|
|
|
|
create_key('PAY_ROBOKASSA_PASSWORD2', '')
|
|
|
|
create_key('PAY_ROBOKASSA_ENABLED', '')
|
|
|
|
create_key('SMTP_PORT', '')
|
|
|
|
create_key('SMTP_USERNAME', '')
|
|
|
|
create_key('SMTP_PASSWORD', '')
|
|
|
|
create_key('SMTP_TIMEOUT', '')
|
|
|
|
create_key('SMTP_FROM', '')
|
|
|
|
create_key('SMTP_SENDER', '')
|
|
|
|
create_key('SMTP_SSL', '1')
|
|
|
|
create_key('SMTP_SERVER', 'smtp.yandex.ru')
|
|
|
|
create_key('CLOUDNS_EMAIL', '')
|
|
|
|
create_key('CLOUDNS_SECRET', '')
|
|
|
|
create_key('CLOUDNS_DOMAIN', '')
|
|
|
|
create_key('CLOUDNS_HOST_BALANCE', 'servers.gocloud.ru.')
|
|
|
|
create_key('CLOUDNS_HOST_BALANCE', 'lb.gocloud.ru')
|
|
|
|
create_key('footer_code', '')
|
|
|
|
|
|
|
|
create_key("mail.template_name", "simple")
|
2016-04-02 08:33:34 +03:00
|
|
|
create_key('mail.logotype', "https://gocloud.ru/static/images/logo/procdn-logo-48.png")
|
2015-11-26 23:49:41 +03:00
|
|
|
create_key("mail.company_name", "ProCDN.ru")
|
|
|
|
|
|
|
|
create_key("contacts.email", "support@procdn.ru")
|
|
|
|
create_key("contacts.phone", "+7 499 7020 236")
|
|
|
|
|
|
|
|
create_key("social.googleplus", "http://plus.google.com/#efef")
|
|
|
|
create_key("social.facebook", "")
|
|
|
|
create_key("social.twitter", "")
|
2016-05-27 08:59:42 +03:00
|
|
|
|
|
|
|
create_key("SERVICE_VMS_ENABLE", "1")
|
2016-08-22 03:58:07 +03:00
|
|
|
create_key("SERVICE_VMS_ENABLE", "1")
|
|
|
|
|
|
|
|
create_key("SUPPORT_TEL", "+7 499 702-02-36")
|
|
|
|
create_key("SUPPORT_EMAIL", "support@gocloud.ru")
|