DEV Community

Comficker
Comficker

Posted on

2

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

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay