Launch Your Django App in Just 5 Minutes
2 min readAug 7, 2023
Embarking on the journey of developing a web application can be exhilarating, but setting up the right environment shouldn't be a roadblock. Whether you're using Windows, Linux, or macOS, I've got you covered with a step-by-step guide to swiftly get your Django app up and running in just five minutes.
Let’s start with the Windows first
Install Python:
- Visit the official Python website and download the latest version for Windows.
- During installation, make sure to check the box that says “Add Python to PATH.”
Create a Virtual Environment:
- Open Command Prompt and navigate to your project folder.
- Run the following commands:
python -m venv venv
venv\Scripts\activate
Install Django:
- While in the virtual environment, install Django:
pip install django
Create and Run Your Django App:
- Create a new Django project:
django-admin startproject myproject
- Navigate into the project directory:
cd myproject
Start the development server:
python manage.py runserver