46 lines
1.4 KiB
Python
46 lines
1.4 KiB
Python
import argparse
|
|
from uuid import uuid4
|
|
from hashlib import md5
|
|
from app import models
|
|
|
|
__author__ = 'vanzhiganov'
|
|
|
|
|
|
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://procdn.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", "")
|