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