1
2
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
12
    DEBUG = True  # False
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
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.
24
    SQLALCHEMY_DATABASE_URI = 'dialect+driver://username:password@host:port/database'
25
26
    # Log level for the application
27
    LOG_LEVEL = 'ERROR'
28
29
    # sqlalchemy debug messages; turn to False in prdocution
30
    SQLALCHEMY_ECHO = True  # False
31
32
    # DEFAULT_MAIL_SENDER = 'support@swtr.us'
33
34
    # Configure your log paths
35
    LOG_FILE = 'logs/swtstore.log'
36
37
    # The Mozilla Persona Verifier Host. Leave it as it is.
38
    MOZ_PERSONA_VERIFIER = 'https://verifier.login.persona.org/verify'
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