Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

Commit

Permalink
Out settings loading process
Browse files Browse the repository at this point in the history
  • Loading branch information
klen committed Oct 2, 2012
1 parent f59718f commit 5e77336
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
8 changes: 7 additions & 1 deletion base/config/core.py
@@ -1,4 +1,7 @@
" Immutable basic settings. "
""" Immutable basic settings.
"""

import logging

from base.config import op, ROOTDIR

Expand All @@ -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 changes: 3 additions & 1 deletion base/config/develop.py
@@ -1,4 +1,5 @@
" Settings for develop process. "
""" Development settings.
"""

from .production import *

Expand All @@ -8,5 +9,6 @@
DEBUG_TB_INTERCEPT_REDIRECTS = False
SQLALCHEMY_ECHO = True

logging.info("Develop settings loaded.")

# pymode:lint_ignore=W0614,W404
1 change: 1 addition & 0 deletions base/config/production.py
Expand Up @@ -34,5 +34,6 @@
backends=('git', 'mercurial', 'simple', 'null')
)

logging.info("Production settings loaded.")

# pymode:lint_ignore=W0614,W404
1 change: 1 addition & 0 deletions base/config/test.py
Expand Up @@ -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.