Commit 84990dc304656f1bf15ab70458d1ccfbac2e87b0
- Diff rendering mode:
- inline
- side by side
swtstore/sample_config.py
(8 / 3)
  | |||
8 | 8 | """ | |
9 | 9 | ||
10 | 10 | # You can turn debug to False in production | |
11 | DEBUG = True # False | ||
11 | DEBUG = True # False | ||
12 | 12 | ||
13 | 13 | # Secret key needed by the Flask application to create sessions | |
14 | 14 | SECRET_KEY = '<generate a long, random, unique string and put it here. see\ | |
15 | 15 | python uuid>' | |
16 | 16 | ||
17 | 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 | 23 | SQLALCHEMY_DATABASE_URI =\ | |
19 | 24 | 'dialect+driver://username:password@host:port/database' | |
20 | 25 | ||
… | … | ||
27 | 27 | LOG_LEVEL = 'ERROR' | |
28 | 28 | ||
29 | 29 | # sqlalchemy debug messages; turn to False in prdocution | |
30 | SQLALCHEMY_ECHO = True #False | ||
30 | SQLALCHEMY_ECHO = True # False | ||
31 | 31 | ||
32 | #DEFAULT_MAIL_SENDER = 'support@swtr.us' | ||
32 | # DEFAULT_MAIL_SENDER = 'support@swtr.us' | ||
33 | 33 | ||
34 | 34 | # Configure your log paths | |
35 | 35 | LOG_FILE = 'logs/swtstore.log' |