diff options
author | 2010-07-09 13:41:46 +0300 | |
---|---|---|
committer | 2010-07-09 13:41:46 +0300 | |
commit | 3519e42c795d860d076787aadfbe7123f2a0ccaf (patch) | |
tree | 10401454477caf03f5626a14e6557e88976fc7b9 | |
parent | Added herd qa-checker (diff) | |
download | gsoc2010-grumpy-3519e42c795d860d076787aadfbe7123f2a0ccaf.tar.gz gsoc2010-grumpy-3519e42c795d860d076787aadfbe7123f2a0ccaf.tar.bz2 gsoc2010-grumpy-3519e42c795d860d076787aadfbe7123f2a0ccaf.zip |
Move grumpy.cfg to separate dir
-rw-r--r-- | conf/grumpy.cfg | 13 | ||||
-rw-r--r-- | grumpy/__init__.py | 1 | ||||
-rw-r--r-- | grumpy/grumpy.cfg | 4 |
3 files changed, 13 insertions, 5 deletions
diff --git a/conf/grumpy.cfg b/conf/grumpy.cfg new file mode 100644 index 0000000..6abcad8 --- /dev/null +++ b/conf/grumpy.cfg @@ -0,0 +1,13 @@ +# This is an example configuration file for Grumpy application + +# Debug mode: Please be sure that this is disabled on development servers +# because it allows execution of arbitrary code. +DEBUG = True +# Secret random key for cookie generation. For best results of randomness +# use the snippet below: +# >> import os ; os.urandom(24) +SECRET_KEY='Change me' + +# Database configuration +SQLALCHEMY_ECHO=False +SQLALCHEMY_DATABASE_URI='postgresql://grumpy:grumpy@localhost/grumpy' diff --git a/grumpy/__init__.py b/grumpy/__init__.py index 72e6636..d7562aa 100644 --- a/grumpy/__init__.py +++ b/grumpy/__init__.py @@ -1,4 +1,3 @@ from flask import Flask app = Flask(__name__) -app.config.from_pyfile('grumpy.cfg') diff --git a/grumpy/grumpy.cfg b/grumpy/grumpy.cfg deleted file mode 100644 index c3c7233..0000000 --- a/grumpy/grumpy.cfg +++ /dev/null @@ -1,4 +0,0 @@ -DEBUG = True -SQLALCHEMY_ECHO=False -SQLALCHEMY_DATABASE_URI='postgresql://grumpy:grumpy@localhost/grumpy' -SECRET_KEY='Change me' |