-
Notifications
You must be signed in to change notification settings - Fork 129
Project Settings
非法操作 edited this page Dec 15, 2023
·
5 revisions
If you want change default settings create file .flaskenv with content:
FLASK_APP=app.py
FLASK_ENV=develop
FLASK_DEBUG=1
FLASK_RUN_HOST=0.0.0.0
FLASK_RUN_PORT=5000
SECRET_KEY=abcdefgh
DB_TYPE=postgresql # mysql
DB_USER=root
DB_PASSWD=my_passwd
DB_HOST=127.0.0.1
DB_PORT=5432
DB_NAME=flaskshop
BABEL_DEFAULT_LOCALE=en_US
BABEL_DEFAULT_TIMEZONE=UTC
BABEL_TRANSLATION_DIRECTORIES=../translations
BABEL_CURRENCY=USD
GA_MEASUREMENT_ID=G-QCX3G9KSPC
Redis and Elasticsearch is unabled by default, You can enable them for good performence and search ablitity.
The default admin account is:
username | password | role |
---|---|---|
admin | admin | super administrator |
editor | editor | editor |
op | op | operator |