From e209b96fc4bbc1916b0a1c31efccd8dd0e4e85a5 Mon Sep 17 00:00:00 2001 From: Anon Ray Date: Wed, 19 Feb 2014 13:38:13 +0530 Subject: [PATCH] Change config.py to sample_config.py --- .gitignore | 1 + swtstore/config.py | 29 ----------------------------- swtstore/sample_config.py | 28 ++++++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 29 deletions(-) delete mode 100644 swtstore/config.py create mode 100644 swtstore/sample_config.py diff --git a/.gitignore b/.gitignore index 0d20b64..df81b2c 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.pyc +config.py diff --git a/swtstore/config.py b/swtstore/config.py deleted file mode 100644 index 0b6a886..0000000 --- a/swtstore/config.py +++ /dev/null @@ -1,29 +0,0 @@ -#SECRET_KEY = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" -#DATABASE = 'sweets_production' -#DEBUG = True -#ADMIN_USERNAME = 'admin' -#ADMIN_PASSWORD = 'default' -#DB_PORT = 27017 -#DB_HOST = 'localhost' -#URL = "http://localhost:5001" - -class DefaultConfig(): - - """ - Default configuration for Sweet Store application - """ - - DEBUG = True - - SECRET_KEY = '' - - SQLALCHEMY_DATABASE_URI =\ - 'postgresql+psycopg2://ecthiender:polarbear@localhost/testing' - - SQLALCHEMY_ECHO = True - - #DEFAULT_MAIL_SENDER = 'support@swtr.us' - - DEBUG_LOG = 'logs/debug.log' - ERROR_LOG = 'logs/error.log' diff --git a/swtstore/sample_config.py b/swtstore/sample_config.py new file mode 100644 index 0000000..29df4d1 --- /dev/null +++ b/swtstore/sample_config.py @@ -0,0 +1,28 @@ + +class DefaultConfig(): + + """ + Default configuration for Sweet Store application + Copy this sample_config.py file to config.py and edit the values to your + requirements + """ + + # You can turn debug to False in production + DEBUG = True # False + + # Secret key needed by the Flask application to create sessions + SECRET_KEY = '' + + # the sqlalchemy database URI + SQLALCHEMY_DATABASE_URI =\ + 'dialect+driver://username:password@host:port/database' + + # sqlalchemy debug messages; turn to False in prdocution + SQLALCHEMY_ECHO = True #False + + #DEFAULT_MAIL_SENDER = 'support@swtr.us' + + # Configure your log paths + DEBUG_LOG = 'logs/debug.log' + ERROR_LOG = 'logs/error.log' -- 1.7.10.4