This is a template repository for FastAPI with Django ORM.
You can add other Django Apps to it, and/or use Django Admin by mounting it at /admin
.
- Devcontainer configuration;
- Dependabot configuration;
- Dockerfile for building the app;
- Docker Compose for running the app with PostgreSQL database in dev;
- FastAPI with some middleware and error handlers;
- Click on "Use this template" button;
- Clone the repository;
- Open the repository in VSCode;
- Reopen the repository in a Devcontainer;
- Edit as you wish (rename apps, devcontainer, services, etc.).
You can change settings in mysite/settings
folder, and (most likely) need to change settings in mysite/config.py
file.
The latter contains Pydantic Settings classes that are used to load settings from environment variables.