A django project to add title and alt-text to images and post them to the Fediverse
Go to file
2024-10-21 20:51:38 +02:00
idescriptor feat: Add sensible navigation 2024-10-21 20:51:38 +02:00
imagebot Initial commit 2024-10-21 20:32:47 +02:00
.gitignore Initial commit 2024-10-21 20:32:47 +02:00
imagebot.cfg Initial commit 2024-10-21 20:32:47 +02:00
poetry.lock Initial commit 2024-10-21 20:32:47 +02:00
pyproject.toml Initial commit 2024-10-21 20:32:47 +02:00
README.md Initial commit 2024-10-21 20:32:47 +02:00

RatBot

alembic init alembic

In alembic.ini, configure the database URL:

sqlalchemy.url = sqlite:///./test.db

albemic/env.py

from models import Base
target_metadata = Base.metadata

Make migrations

alembic revision --autogenerate -m "Create model XYZ"

Migrate

alembic upgrade head