-
-
Notifications
You must be signed in to change notification settings - Fork 365
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
Example - 404 Error #23
Comments
You are not mistaken, restful api server is runing normally, next you do is just run front, see https://github.com/long2ice/restful-admin |
Well, I missed this detail ! Thank you ! |
im also trying to integrate it but getting few errors like any help please i new to fastapi my code looks like this from fastapi import FastAPI app = FastAPI( Set all CORS enabled originsif settings.BACKEND_CORS_ORIGINS: @app.on_event("startup") app.include_router(api_router, prefix=settings.API_V1_STR) |
Can't see any wrong, you can reference examples |
Everything is as in examples i compared all the files i dont know what would be the problem @long2ice please help me to solve this issue if you can i should be thank full main.py from fastapi import FastAPI app = FastAPI( Set all CORS enabled originsif settings.BACKEND_CORS_ORIGINS: @app.on_event("startup") app.include_router(api_router, prefix=settings.API_V1_STR) ERROR Traceback (most recent call last): |
What's the tortoise-orm version? Keep it latest. |
(0.16.19) |
That's a bug and fixed in latest dev branch. |
-NameError: name 'TORTOISE_ORM' is not defined |
@UsamaHaide0786 Yes you need to define your own TORTOISE_ORM. Like this :
|
@AlexTheByte Really appreciate you guys and thank full for all the help (Quick Note: Im Using PostgreSQL) ?[31mERROR?[0m: Application startup failed. Exiting. ?[31mERROR?[0m: Application startup failed. Exiting. |
Hi, before integrating your solution into my project, I tried to execute your example :
The application start well :
And the data are injected into the database :
But when I try to navigate to 127.0.0.1:8000/admin, I have an 404 error :
Otherwise, 127.0.0.1:8000/admin/docs works
My configuration :
If you need more informations, do not hesitate to ask me.
Thank you !
The text was updated successfully, but these errors were encountered: