Исправление автомиграции и создания администратора

This commit is contained in:
2025-12-19 21:28:52 +03:00
parent f6ac03a869
commit 719631158d
4 changed files with 84 additions and 55 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ config.set_main_option("sqlalchemy.url", POSTGRES_DATABASE_URL)
# Interpret the config file for Python logging.
# This line sets up loggers basically.
if config.config_file_name is not None:
fileConfig(config.config_file_name)
if config.attributes.get("configure_logging", True):
fileConfig(config.config_file_name)
# add your model's MetaData object here
# for 'autogenerate' support