--- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.pyc +config.py --- a/swtstore/config.py +++ /dev/null @@ -1,30 +1 @@ -#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' --- /dev/null +++ b/swtstore/sample_config.py @@ -1 +1,29 @@ + +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'