Results of 1 - 3 of about 3 for mounted (0.001 sec.)
- Sub Applications - Mounts 11868
- Sub Applications - Mounts Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you need to have two independent FastAPI applications, with their own independent Open
...its path operations . This sub-application is just another standard FastAPI application, but this is the one that will be "mounted": Python 3.8+ from fastapi import FastAPI app = FastAPI () @app . get ( "/app" ) def read_main (): return { "message" : "H...ount the sub-application In your top-level application, app , mount the sub-application, subapi . In this case, it will be mounted at the path /subapi : Python 3.8+ from fastapi import FastAPI app = FastAPI () @app . get ( "/app" ) def read_main (): ret...ay, the sub-application will know to use that path prefix for the docs UI. And the sub-application could also have its own mounted sub-applications and everything would work correctly, because FastAPI handles all these root_path s automatically. You wil... - https://man.mtool.work/fastapi/0.115/advanced/sub-applications/
- Templates 8501
- Templates Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . You can use any template engine you want with FastAPI . A common choice is Jinja2, the same one used by F
...ates and static files You can also use url_for() inside of the template, and use it, for example, with the StaticFiles you mounted with the name="static" . <html> <head> <title>Item Details</title> <link href=" {{ url_for ( 'static' , path = '/styles.cs... - https://man.mtool.work/fastapi/0.115/advanced/templates/
- Bigger Applications - Multiple Files 7515
- Bigger Applications - Multiple Files Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . If you are building an application or a web API, it's rarely the case that you
.... Very Technical Details Note : this is a very technical detail that you probably can just skip . The APIRouter s are not "mounted", they are not isolated from the rest of the application. This is because we want to include their path operations in the... - https://man.mtool.work/fastapi/0.115/tutorial/bigger-applications/
PREV
1
NEXT