piccolo-orm / piccolo_admin

A powerful web admin for your database.
https://piccolo-orm.com/ecosystem/
MIT License
299 stars 35 forks source link

AttributeError: type object 'Model' has no attribute '_meta' #370

Closed jrujano closed 4 months ago

jrujano commented 4 months ago

I am using sqlalchemy, and when mounting the admin it gives me the following error

Captura de pantalla 2024-03-05 225931

Below I present my files:

main.py code

base_class.py base_class

models.py

model

sinisaos commented 4 months ago

@jrujano You cannot use SQLAlchemy with Piccolo Admin. Piccolo Admin is the UI for Piccolo ORM tables. For SQLAlchemy you can use Starlette Admin or SQLAlchemy Admin.

dantownsend commented 4 months ago

I'm going to close this, as there are no plans to support SQLAlchemy. Instead, a standalone Docker container is my preferred solution https://github.com/piccolo-orm/piccolo_admin/issues/129