Fix import conf.py
This commit is contained in:
parent
92e6a317ad
commit
f102cb7c01
|
@ -23,8 +23,6 @@ import lxml.etree as ET
|
|||
import requests
|
||||
from requests.exceptions import ConnectionError
|
||||
|
||||
from .conf import DEBUG, AUTH
|
||||
|
||||
|
||||
LOG_FORMAT = '%(asctime)s - %(levelname)s - %(message)s'
|
||||
LOG_DATE = '%d/%m/%Y %H:%M:%S'
|
||||
|
@ -33,10 +31,16 @@ logging.addLevelName(logging.DEBUG, '\x1b[33mDEBUG\033[1;0m')
|
|||
logging.addLevelName(logging.INFO, '\x1b[32mINFO\033[1;0m')
|
||||
logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT, datefmt=LOG_DATE)
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
logging.getLogger('requests').setLevel(logging.ERROR)
|
||||
|
||||
|
||||
try:
|
||||
from .conf import DEBUG, AUTH
|
||||
except ImportError:
|
||||
DEBUG = False
|
||||
log.error('Need make conf.py')
|
||||
|
||||
|
||||
TIMEOUT = 10
|
||||
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
# ~ con una cuenta de reseller
|
||||
|
||||
|
||||
DEBUG = True
|
||||
DEBUG = False
|
||||
|
||||
|
||||
AUTH = {
|
||||
|
|
|
@ -47,7 +47,7 @@ except ImportError:
|
|||
|
||||
|
||||
DEBUG = DEBUG
|
||||
VERSION = '1.33.0'
|
||||
VERSION = '1.33.1'
|
||||
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
||||
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
||||
|
||||
|
|
Loading…
Reference in New Issue