Переделан конфиг (под dev и production)
This commit is contained in:
4
aore/config/__init__.py
Normal file
4
aore/config/__init__.py
Normal file
@@ -0,0 +1,4 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import absolute_import
|
||||
from .dev import *
|
||||
24
aore/config/common.py
Normal file
24
aore/config/common.py
Normal 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
16
aore/config/dev.py
Normal 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"
|
||||
Reference in New Issue
Block a user