Environment Django Project

HermantoXYZ
1 min readOct 28, 2024

--

Step 1: Install Python

Make sure Python 3.7 or later is installed on your machine.

macOS: Most macOS systems have Python pre-installed. You can check your Python version by running:

python3 --version

if you don’t have it, you can install it from Python’s official website. Windows: Download and install Python from Python’s official website. Make sure to check the box “Add Python to PATH” during installation.

Step 2: Install Virtual Environment

Create a virtual environment to manage dependencies for your Django project without polluting the global Python environment.

Install venv (if not already installed) by running:

python3 -m pip install --upgrade pip

Create Virtual Environment:

Navigate to the folder where you want to create your project and create a virtual environment:

python3 -m venv env
python -m venv env

Activate Virtual Environment:

source env/bin/activate or .\env\Scripts\activate

Step 3: Install Django

pip install django

Step 4: Create a Django Project

--

--

No responses yet