mirror of
https://github.com/rmontanana/microblog.git
synced 2025-08-16 07:45:51 +00:00
12 lines
328 B
Python
12 lines
328 B
Python
import os
|
|
|
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
class Config(object):
|
|
SECRET_KEY = os.environ.get("SECRET_KEY") or "you-will-never-guess"
|
|
SQLALCHEMY_DATABASE_URI = os.environ.get(
|
|
"DATABASE_URL"
|
|
) or "sqlite:///" + os.path.join(basedir, "app.db")
|
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|