This file looks large and may slow your browser down if we attempt
to syntax highlight it, so we are showing it without any
pretty colors.
Highlight
it anyway.
1 |
|
2 |
class DefaultConfig(): |
3 |
|
4 |
""" |
5 |
Default configuration for Sweet Store application |
6 |
Copy this sample_config.py file to config.py and edit the values to your |
7 |
requirements |
8 |
""" |
9 |
|
10 |
# You can turn debug to False in production |
11 |
DEBUG = True # False |
12 |
|
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\ |
15 |
python uuid>' |
16 |
|
17 |
# the sqlalchemy database URI |
18 |
SQLALCHEMY_DATABASE_URI =\ |
19 |
'dialect+driver://username:password@host:port/database' |
20 |
|
21 |
# Log level for the application |
22 |
LOG_LEVEL = 'ERROR' |
23 |
|
24 |
# sqlalchemy debug messages; turn to False in prdocution |
25 |
SQLALCHEMY_ECHO = True #False |
26 |
|
27 |
#DEFAULT_MAIL_SENDER = 'support@swtr.us' |
28 |
|
29 |
# Configure your log paths |
30 |
LOG_FILE = 'logs/swtstore.log' |
31 |
|
32 |
# The Mozilla Persona Verifier Host. Leave it as it is. |
33 |
MOZ_PERSONA_VERIFIER = 'https://verifier.login.persona.org/verify' |
34 |
|
35 |
# The URL at which this app, swtstore, is deployed. |
36 |
SWTSTORE_URL = 'http://demo.swtr.us' |
37 |
|
38 |
# Bearer token expiry |
39 |
OAUTH2_PROVIDER_TOKEN_EXPIRES_IN = 3600 |