Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
更改数据库至当前目录下
  • Loading branch information
testnobody authored Aug 8, 2021
1 parent 9d03219 commit 2f0e4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
app.config['SECRET_KEY'] = os.environ.get('random_key','c2jf932hibfiuebvwievubheriuvberv')


DATABASE_URL = os.environ.get('DATABASE_URL', 'sqlite:////tmp/flask_app.db')
DATABASE_URL = os.environ.get('DATABASE_URL', 'sqlite:///flask_app.db')
DATABASE_URL = DATABASE_URL.replace("postgres://", "postgresql://", 1)
app.config['SQLALCHEMY_DATABASE_URI'] = DATABASE_URL
db = SQLAlchemy(app)
Expand Down

0 comments on commit 2f0e4cc

Please sign in to comment.