Commit 84990dc304656f1bf15ab70458d1ccfbac2e87b0
Fix: adding documentation for adding user to a database in sample_config.py
| | | | 8 | """ | 8 | """ |
---|
9 | | 9 | |
---|
10 | # You can turn debug to False in production | 10 | # You can turn debug to False in production |
---|
11 | DEBUG = True # False | | DEBUG = True # False |
---|
| | 11 | DEBUG = True # False | 12 | | 12 | |
---|
13 | # Secret key needed by the Flask application to create sessions | 13 | # 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>' |
---|
16 | | 16 | |
---|
17 | # the sqlalchemy database URI | 17 | # 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' |
---|
20 | | 25 | |
---|
… | | … | |
---|
27 | LOG_LEVEL = 'ERROR' | 27 | LOG_LEVEL = 'ERROR' |
---|
28 | | 28 | |
---|
29 | # sqlalchemy debug messages; turn to False in prdocution | 29 | # sqlalchemy debug messages; turn to False in prdocution |
---|
30 | SQLALCHEMY_ECHO = True #False | | SQLALCHEMY_ECHO = True #False |
---|
| | 30 | SQLALCHEMY_ECHO = True # False | 31 | | 31 | |
---|
32 | #DEFAULT_MAIL_SENDER = 'support@swtr.us' | | #DEFAULT_MAIL_SENDER = 'support@swtr.us' |
---|
| | 32 | # DEFAULT_MAIL_SENDER = 'support@swtr.us' | 33 | | 33 | |
---|
34 | # Configure your log paths | 34 | # Configure your log paths |
---|
35 | LOG_FILE = 'logs/swtstore.log' | 35 | LOG_FILE = 'logs/swtstore.log' |
---|