In this section, you:
-
Created a virtual environment in the CLI:
ShellCopied!$ python3 -m venv .env
-
Activated the virtual environment:
ShellCopied!$ source .env/bin/activate
-
Installed Django inside the virtual environment:
ShellCopied!(.env)$ pip install django
-
Created a Django project management app inside the existing folder without duplicating the folder structure:
ShellCopied!(.env)$ django-admin startproject portfolio .
-
Visited the site at
http://localhost:8000
In the next section, you’ll start building a Django application inside the project that you just created.
regiscorblin on Oct. 13, 2019
Hi, just finished part 2. It is probably obvious for experienced dev but on Windows venv doesn’t create the same folder structure. The interpreter is in Scripts not bin folder. Love it so far, the pace is perfect.