Commit e209b96fc4bbc1916b0a1c31efccd8dd0e4e85a5
- Diff rendering mode:
- inline
- side by side
.gitignore
(1 / 0)
  | |||
1 | 1 | *.pyc | |
2 | config.py |
swtstore/config.py
(0 / 29)
  | |||
1 | #SECRET_KEY = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" | ||
2 | #DATABASE = 'sweets_production' | ||
3 | #DEBUG = True | ||
4 | #ADMIN_USERNAME = 'admin' | ||
5 | #ADMIN_PASSWORD = 'default' | ||
6 | #DB_PORT = 27017 | ||
7 | #DB_HOST = 'localhost' | ||
8 | #URL = "http://localhost:5001" | ||
9 | |||
10 | class DefaultConfig(): | ||
11 | |||
12 | """ | ||
13 | Default configuration for Sweet Store application | ||
14 | """ | ||
15 | |||
16 | DEBUG = True | ||
17 | |||
18 | SECRET_KEY = '<generate a long, random, unique string and put it here. see\ | ||
19 | python uuid>' | ||
20 | |||
21 | SQLALCHEMY_DATABASE_URI =\ | ||
22 | 'postgresql+psycopg2://ecthiender:polarbear@localhost/testing' | ||
23 | |||
24 | SQLALCHEMY_ECHO = True | ||
25 | |||
26 | #DEFAULT_MAIL_SENDER = 'support@swtr.us' | ||
27 | |||
28 | DEBUG_LOG = 'logs/debug.log' | ||
29 | ERROR_LOG = 'logs/error.log' |
swtstore/sample_config.py
(28 / 0)
  | |||
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 | # sqlalchemy debug messages; turn to False in prdocution | ||
22 | SQLALCHEMY_ECHO = True #False | ||
23 | |||
24 | #DEFAULT_MAIL_SENDER = 'support@swtr.us' | ||
25 | |||
26 | # Configure your log paths | ||
27 | DEBUG_LOG = 'logs/debug.log' | ||
28 | ERROR_LOG = 'logs/error.log' |