Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Out settings loading process

  • Loading branch information...
commit 5e77336c1c94084a65c65b29463588e03642130c 1 parent f59718f
Kirill Klenov authored
8 base/config/core.py
View
@@ -1,4 +1,7 @@
-" Immutable basic settings. "
+""" Immutable basic settings.
+"""
+
+import logging
from base.config import op, ROOTDIR
@@ -25,3 +28,6 @@
MAIL_USERNAME = None
MAIL_PASSWORD = None
DEFAULT_MAIL_SENDER = None
+
+logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%d.%m %H:%M:%S')
+logging.info("Core settings loaded.")
4 base/config/develop.py
View
@@ -1,4 +1,5 @@
-" Settings for develop process. "
+""" Development settings.
+"""
from .production import *
@@ -8,5 +9,6 @@
DEBUG_TB_INTERCEPT_REDIRECTS = False
SQLALCHEMY_ECHO = True
+logging.info("Develop settings loaded.")
# pymode:lint_ignore=W0614,W404
1  base/config/production.py
View
@@ -34,5 +34,6 @@
backends=('git', 'mercurial', 'simple', 'null')
)
+logging.info("Production settings loaded.")
# pymode:lint_ignore=W0614,W404
1  base/config/test.py
View
@@ -11,5 +11,6 @@
AUTH_USER_MIXINS += ['base.auth.tests.TestUserMixin']
+logging.info("Test settings loaded.")
# pymode:lint_ignore=W0614,W404
Please sign in to comment.
Something went wrong with that request. Please try again.