From 84990dc304656f1bf15ab70458d1ccfbac2e87b0 Mon Sep 17 00:00:00 2001 From: Arvind Khadri Date: Fri, 30 May 2014 18:49:51 +0530 Subject: [PATCH] Fix: adding documentation for adding user to a database in sample_config.py --- swtstore/sample_config.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/swtstore/sample_config.py b/swtstore/sample_config.py index d21d048..d16396c 100644 --- a/swtstore/sample_config.py +++ b/swtstore/sample_config.py @@ -8,13 +8,18 @@ class DefaultConfig(): """ # You can turn debug to False in production - DEBUG = True # False + DEBUG = True # False # Secret key needed by the Flask application to create sessions SECRET_KEY = '' # the sqlalchemy database URI + # postgresql+psycopg2://user:password@localhost:5432/test + # Creation of ``user`` user with access to ``test`` database should have + # been done prior to editing this line. + # Refer https://wiki.debian.org/PostgreSql#User_access for creating users + # in postgresql. SQLALCHEMY_DATABASE_URI =\ 'dialect+driver://username:password@host:port/database' @@ -22,9 +27,9 @@ class DefaultConfig(): LOG_LEVEL = 'ERROR' # sqlalchemy debug messages; turn to False in prdocution - SQLALCHEMY_ECHO = True #False + SQLALCHEMY_ECHO = True # False - #DEFAULT_MAIL_SENDER = 'support@swtr.us' + # DEFAULT_MAIL_SENDER = 'support@swtr.us' # Configure your log paths LOG_FILE = 'logs/swtstore.log' -- 1.7.10.4