I want my projects to be more faster and i decided to use fastapi for them.But can't import my django models and form to fastapi.can someone help me to make api using fastapi for django projects?
any code? (for example blog project)
I want my projects to be more faster and i decided to use fastapi for them.But can't import my django models and form to fastapi.can someone help me to make api using fastapi for django projects?
any code? (for example blog project)
It is possible, the quick way is:
you must have fastapi and django installed in the same environment.
The Django settins must be connected with your database and in fastAPI:
and after that, you have access:
To ensure the conection you must create a FastAPI Middleware
PD: what @MatsLindh said is true, find out first what is the problem that makes it slow