Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate admin panel to django #502

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

laggron42
Copy link
Member

The first brick of work that may be the full migration to Django and the ditch of Tortoise, Aerich and fastapi-admin.

fastapi-admin is ditched, replaced by the much better django admin panel. It will enable much better forms, validation, permissions, logs, 2FA, Discord OAuth2, easy template customization and a wide range of extensions.

As django is mostly compatible with its own ORM, a duplication of models.py has been generated and is marked as unmanaged, meaning Django will only look for existing tables and not attempt to make migrations on it (except for admin stuff). We will have to maintain two copies of the model files.

Migrating to the django DB migration engine is highly considered in the future to ditch aerich, but a full migration to the Django ORM and the ditch of Tortoise is unlikely to arrive soon.

WARNING: DO NOT USE IN PRODUCTION YET

This is still a work in progress, and for now, it is highly insecure (open keys, debug mode always on, all the files including config.yml exposed to the web). Unless you are testing or have a local only panel, please do not use this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant