49 lines
1.5 KiB
Python
49 lines
1.5 KiB
Python
#!/usr/bin/env python
|
|
|
|
from SWSCloudCore import models
|
|
|
|
|
|
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')
|
|
create_key('PAY_ROBOKASSA_MODE', '')
|
|
create_key('PAY_ROBOKASSA_LOGIN', '')
|
|
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")
|
|
create_key('mail.logotype', "https://gocloud.ru/static/images/logo/procdn-logo-48.png")
|
|
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", "")
|
|
|
|
create_key("SERVICE_VMS_ENABLE", "1")
|
|
create_key("SERVICE_VMS_ENABLE", "1")
|
|
|
|
create_key("SUPPORT_TEL", "+7 499 702-02-36")
|
|
create_key("SUPPORT_EMAIL", "support@gocloud.ru")
|