Frameworks solution
Run Django Locally with FlyEnv
Django projects often pair Python with a database and, depending on the application, services such as Redis and a reverse proxy. FlyEnv keeps those local services manageable around the Django project.
Local project stack
Services FlyEnv can manage around Django
- Python
- PostgreSQL / MySQL
- Redis
- Nginx / Apache / Caddy
- Node.js
About Django
Django is a high-level Python web framework for database-driven web applications.
Project resources
For installation commands, supported versions, and project-specific configuration, refer to the official Django documentation.
Typical local stack
The exact services depend on the project, its release, and its local configuration. This is a common local setup, not a fixed requirement.
- Python
- PostgreSQL / MySQL
- Redis
- Nginx / Apache / Caddy
- Node.js
| Component | Typical role |
|---|---|
| Python | Runs the Django project. |
| PostgreSQL / MySQL | Stores application data when configured. |
| Redis | May support caching, channels, or background work. |
| Nginx / Apache / Caddy | May serve a local domain. |
| Node.js | May build project frontend assets. |
How FlyEnv helps
Select Python per project
Keep projects that target different Python versions separate.
Run the chosen database
Use PostgreSQL or MySQL when the Django settings require it.
Keep Redis optional
Start Redis only for projects that use its cache or async features.
Configure a local address
Use a web server, local domain, and HTTPS when the workflow needs them.
Set up the local environment
Project installation stays with the upstream documentation. FlyEnv manages the runtimes, databases, web servers, and supporting services around it.
- 1Install and configure the Django project according to the official Django documentation.
- 2Choose the Python runtime expected by the project.
- 3Start the database configured in the project settings.
- 4Start Redis only when the project uses it.
- 5Configure a local web server, domain, and HTTPS when appropriate.
- 6Use a Startup Group to keep the project services together when useful.
Related solutions
Ready to run Django locally?
Use FlyEnv to manage the runtimes, databases, web servers, and services around your local Django environment.