This is a clip from the Wagtail for Beginners course. Learn how to setup a brand new Wagtail project using pure Python. No Docker, no virtualenv, no Pipenv, nothing fancy. We'll use Pythons built in venv command.
Sometimes the best way to get started is the easiest. When you're just getting started with a Python project, it can take time to setup Docker, or a specialized virtual environment.
In this tutorial we'll create a brand new virtual environment using Pythons
It's so easy, it can be done in one simple command.
This command is about 100x easier than using Docker. And in my opinion it's just as easy as setting up a project with Pipenv or virtualenv. To create a new venv simply type this command in your project directory:
python -m venv .venv/
Activating your venv is the same as using virtualenv, if you've ever used that. It's as easy as:
Once you're inside of your
venv you cant type
deactivate to get out of it.
Sometimes we break something or make a mistake (like typos!) and we want to start over. All we need to do is delete the
.venv/ directory. You can either open the project folder and delete the
.venv/ folder, or
cd to your project form your favourite command line program and type
rm -rf .venv/ (but please be careful when using
This lesson is a clip from the Wagtail for Beginners course where you'll learn how to create a brand new Wagtail website from scratch. It includes pretty much all the code you'll use on every single Wagtail website including a custom menu, Orderables, and even caching mechanisms. (and feel free to steal the source code!). You'll also learn how to setup your Wagtail website on a production server using Ubuntu.