Переделан конфиг (под dev и production)

This commit is contained in:
Jack Stdin
2016-01-31 23:23:52 +03:00
parent c65f78dd06
commit 1a221d9a93
16 changed files with 117 additions and 106 deletions

4
aore/config/__init__.py Normal file
View File

@@ -0,0 +1,4 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from .dev import *

24
aore/config/common.py Normal file
View File

@@ -0,0 +1,24 @@
# -*- coding: utf-8 -*-
class sphinx_conf:
host_name = "localhost"
port = 9312
index_addjobj = "idx_fias_addrobj"
index_sugg = "idx_fias_sugg"
var_dir = None
class db_conf:
host = None
user = None
password = None
database = None
port = None
class unrar_config:
path = None
class folders:
temp = None

16
aore/config/dev.py Normal file
View File

@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from .common import *
sphinx_conf.var_dir = "C:\\Sphinx"
db_conf.database = "postgres"
db_conf.host = "localhost"
db_conf.port = 5432
db_conf.user = "postgres"
db_conf.password = "intercon"
unrar_config.path = "C:\Program Files (x86)\WinRAR\unrar.exe"
folders.temp = "E:\\!TEMP"