Skip to content
Browse files

Out settings loading process

  • Loading branch information...
1 parent f59718f commit 5e77336c1c94084a65c65b29463588e03642130c @klen committed Oct 3, 2012
Showing with 12 additions and 2 deletions.
  1. +7 −1 base/config/core.py
  2. +3 −1 base/config/develop.py
  3. +1 −0 base/config/production.py
  4. +1 −0 base/config/test.py
View
8 base/config/core.py
@@ -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.")
View
4 base/config/develop.py
@@ -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
View
1 base/config/production.py
@@ -34,5 +34,6 @@
backends=('git', 'mercurial', 'simple', 'null')
)
+logging.info("Production settings loaded.")
# pymode:lint_ignore=W0614,W404
View
1 base/config/test.py
@@ -11,5 +11,6 @@
AUTH_USER_MIXINS += ['base.auth.tests.TestUserMixin']
+logging.info("Test settings loaded.")
# pymode:lint_ignore=W0614,W404

0 comments on commit 5e77336

Please sign in to comment.
Something went wrong with that request. Please try again.