Replies: 3 comments
-
Hi @MoBoo. While I used and appreciate the Django Admin - litestar is not meant to be a batteries included framework on the scale of Django. We aim to be somewhere between Flask and Django while keeping things nimble and splitting as much as possible to contrib. This could be a great third party package, but I personally dont see us adding this to litestar. Perhaps the other maintainers feel differently though. Lets see. |
Beta Was this translation helpful? Give feedback.
-
@MoBoo If you are not using SqlAlchemy, you can try Piccolo ORM which has an integrated admin UI. Litestar has the option of mounting the Piccolo admin UI (a separate ASGI application) and the Piccolo integration via a plugin (which is optional as the plugin is basically a create_pydantic_model wrapper). Feel free to try Piccolo, it might suit your needs. I hope that is useful. |
Beta Was this translation helpful? Give feedback.
-
A built-in, general purpose admin site similar to Django's is - nearly - impossible. Mainly because we don't have that tight coupling to an ORM Django has, which means we'd need to either restrict it to SQLAlchemy, find an abstraction over all the possible ORMs, and / or greatly reduce the feature set. I do think this could possibly be a great first-party package, with a reduced scope maybe. |
Beta Was this translation helpful? Give feedback.
-
Summary
Developing and including a built-in admin site for litestar, similar to Django's admin site.
Django's admin site is often the usp when deciding on which web framework to use.
There is already a similar project for SQLAlchemy: https://github.com/aminalaee/sqladmin, that could be adapted (?)
Basic Example
https://docs.djangoproject.com/en/4.2/intro/tutorial02/#start-the-development-server
https://docs.djangoproject.com/en/4.2/ref/contrib/admin/
Drawbacks and Impact
No response
Unresolved questions
No response
Beta Was this translation helpful? Give feedback.
All reactions