Commit 84990dc304656f1bf15ab70458d1ccfbac2e87b0

  • avatar
  • arvind
  • Fri May 30 18:49:51 IST 2014
Fix: adding documentation for adding user to a database in sample_config.py
  
88 """
99
1010 # You can turn debug to False in production
11 DEBUG = True # False
11 DEBUG = True # False
1212
1313 # Secret key needed by the Flask application to create sessions
1414 SECRET_KEY = '<generate a long, random, unique string and put it here. see\
1515 python uuid>'
1616
1717 # the sqlalchemy database URI
18 # postgresql+psycopg2://user:password@localhost:5432/test
19 # Creation of ``user`` user with access to ``test`` database should have
20 # been done prior to editing this line.
21 # Refer https://wiki.debian.org/PostgreSql#User_access for creating users
22 # in postgresql.
1823 SQLALCHEMY_DATABASE_URI =\
1924 'dialect+driver://username:password@host:port/database'
2025
2727 LOG_LEVEL = 'ERROR'
2828
2929 # sqlalchemy debug messages; turn to False in prdocution
30 SQLALCHEMY_ECHO = True #False
30 SQLALCHEMY_ECHO = True # False
3131
32 #DEFAULT_MAIL_SENDER = 'support@swtr.us'
32 # DEFAULT_MAIL_SENDER = 'support@swtr.us'
3333
3434 # Configure your log paths
3535 LOG_FILE = 'logs/swtstore.log'