Add migrations folder directory

This commit is contained in:
Michał 2023-04-20 13:57:03 +00:00
parent b8846895de
commit 5f58575fd5

View file

@ -36,7 +36,7 @@ def create_app(): # pylint: disable=R0914
# DATABASE # DATABASE
db.init_app(app) db.init_app(app)
migrate.init_app(app, db) migrate.init_app(app, db, directory=MIGRATIONS_DIR)
# If database file doesn't exist, create it # If database file doesn't exist, create it
if not os.path.exists(os.path.join(INSTACE_DIR, "gallery.sqlite3")): if not os.path.exists(os.path.join(INSTACE_DIR, "gallery.sqlite3")):
@ -108,7 +108,7 @@ def create_app(): # pylint: disable=R0914
scripts = Bundle("js/*.js", output="gen/js.js", depends="js/*.js") # filter jsmin is broken :c scripts = Bundle("js/*.js", output="gen/js.js", depends="js/*.js") # filter jsmin is broken :c
styles = Bundle( styles = Bundle(
"sass/*.sass", "sass/style.sass",
filters="libsass, cssmin", filters="libsass, cssmin",
output="gen/styles.css", output="gen/styles.css",
depends="sass/**/*.sass", depends="sass/**/*.sass",