Skip to content

Commit

Permalink
Use a docstring for default_settings.py and set DEBUG=True, which…
Browse files Browse the repository at this point in the history
… is the current case for each individual component.
  • Loading branch information
joncotton committed Mar 11, 2014
1 parent ff2bdc7 commit 2d9b2c3
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions armstrong/dev/default_settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
"""
Default settings for Armstrong components running in a dev/test environment
A component may (and might have to) override or supply additional settings
by creating an `env_settings.py` file in its root directory that imports
from this file.
from armstrong.dev.default_settings import *
"""
# Since we are using configure() we need to manually load the defaults
from django.conf.global_settings import *

Expand All @@ -6,10 +16,10 @@
package = json.load(open("./package.json"))
app_name = package['name'].rsplit('.', 1)[1]


#
# Default settings
# Armstrong default settings
#
DEBUG = True
INSTALLED_APPS = [package['name']]
DATABASES = {
"default": {
Expand Down Expand Up @@ -41,10 +51,3 @@
}
}
}

#
# A component may override settings by creating an `env_settings.py`
# file in its root directory that imports from this file.
#
# from armstrong.dev.default_settings import *
#

0 comments on commit 2d9b2c3

Please sign in to comment.