console/cloud-settings-init.py

44 lines
1.4 KiB
Python
Raw Normal View History

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:
print 'key %s already exists' % key
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", "")