Install Django

enshunt

Comficker

Posted on October 19, 2022

Install Django

It’s usually best to install Django to a virtual environment, where your project can be isolated from your other Python projects. Most commands assume you’re working in an active virtual environment.

Create a virtual environment

$ python –m venv v
Enter fullscreen mode Exit fullscreen mode

Activate the environment (Linux and OS X)

$ source v/bin/activate
Enter fullscreen mode Exit fullscreen mode

Activate the environment (Windows)

venv\Scripts\activate
Enter fullscreen mode Exit fullscreen mode

Install Django to the active environment

(venv)$ pip install Django
Enter fullscreen mode Exit fullscreen mode

Django Cheat Sheet

💖 💪 🙅 🚩
enshunt
Comficker

Posted on October 19, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related