e209b96 by Anon Ray at 2014-02-19 | 1 | |
cffc26d by Anon Ray at 2014-06-10 | 2 | |
e209b96 by Anon Ray at 2014-02-19 | 3 | class DefaultConfig(): |
4 | ||
5 | """ |
|
6 | Default configuration for Sweet Store application |
|
7 | Copy this sample_config.py file to config.py and edit the values to your |
|
8 | requirements |
|
9 | """ |
|
10 | ||
11 | # You can turn debug to False in production |
|
84990dc by Arvind Khadri at 2014-05-30 | 12 | DEBUG = True # False |
e209b96 by Anon Ray at 2014-02-19 | 13 | |
14 | # Secret key needed by the Flask application to create sessions |
|
15 | SECRET_KEY = '<generate a long, random, unique string and put it here. see\ |
|
16 | python uuid>' |
|
17 | ||
18 | # the sqlalchemy database URI |
|
84990dc by Arvind Khadri at 2014-05-30 | 19 | # postgresql+psycopg2://user:password@localhost:5432/test |
20 | # Creation of ``user`` user with access to ``test`` database should have |
|
21 | # been done prior to editing this line. |
|
22 | # Refer https://wiki.debian.org/PostgreSql#User_access for creating users |
|
23 | # in postgresql. |
|
cffc26d by Anon Ray at 2014-06-10 | 24 | SQLALCHEMY_DATABASE_URI = 'dialect+driver://username:password@host:port/database' |
e209b96 by Anon Ray at 2014-02-19 | 25 | |
ce66e4e by Anon Ray at 2014-05-11 | 26 | # Log level for the application |
27 | LOG_LEVEL = 'ERROR' |
|
28 | ||
e209b96 by Anon Ray at 2014-02-19 | 29 | # sqlalchemy debug messages; turn to False in prdocution |
84990dc by Arvind Khadri at 2014-05-30 | 30 | SQLALCHEMY_ECHO = True # False |
e209b96 by Anon Ray at 2014-02-19 | 31 | |
84990dc by Arvind Khadri at 2014-05-30 | 32 | # DEFAULT_MAIL_SENDER = 'support@swtr.us' |
e209b96 by Anon Ray at 2014-02-19 | 33 | |
34 | # Configure your log paths |
|
ce66e4e by Anon Ray at 2014-05-11 | 35 | LOG_FILE = 'logs/swtstore.log' |
d120774 by Anon Ray at 2014-03-08 | 36 | |
37 | # The Mozilla Persona Verifier Host. Leave it as it is. |
|
38 | MOZ_PERSONA_VERIFIER = 'https://verifier.login.persona.org/verify' |
|
f867edb by Anon Ray at 2014-04-10 | 39 | |
40 | # The URL at which this app, swtstore, is deployed. |
|
41 | SWTSTORE_URL = 'http://demo.swtr.us' |
|
42 | ||
43 | # Bearer token expiry |
|
44 | OAUTH2_PROVIDER_TOKEN_EXPIRES_IN = 3600 |