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
  • Diff rendering mode:
  • inline
  • side by side

swtstore/sample_config.py

8 """8 """
99
10 # You can turn debug to False in production10 # You can turn debug to False in production
11 DEBUG = True # False
11 DEBUG = True # False
1212
13 # Secret key needed by the Flask application to create sessions13 # Secret key needed by the Flask application to create sessions
14 SECRET_KEY = '<generate a long, random, unique string and put it here. see\14 SECRET_KEY = '<generate a long, random, unique string and put it here. see\
15 python uuid>'15 python uuid>'
1616
17 # the sqlalchemy database URI17 # 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.
18 SQLALCHEMY_DATABASE_URI =\23 SQLALCHEMY_DATABASE_URI =\
19 'dialect+driver://username:password@host:port/database'24 'dialect+driver://username:password@host:port/database'
2025
27 LOG_LEVEL = 'ERROR'27 LOG_LEVEL = 'ERROR'
2828
29 # sqlalchemy debug messages; turn to False in prdocution29 # 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
34 # Configure your log paths34 # Configure your log paths
35 LOG_FILE = 'logs/swtstore.log'35 LOG_FILE = 'logs/swtstore.log'