Setting up the e-learning project
Your final practical project will be an e-learning platform. First, create a virtual environment for your new project within the env/
directory with the following command:
python -m venv env/educa
If you are using Linux or macOS, run the following command to activate your virtual environment:
source env/educa/bin/activate
If you are using Windows, use the following command instead:
.\env\educa\Scripts\activate
Install Django in your virtual environment with the following command:
python -m pip install Django~=5.0.4
You are going to manage image uploads in your project, so you also need to install Pillow
with the following command:
python -m pip install Pillow==10.3.0
Create a new project using the following command:
django-admin startproject educa
Enter the new educa
directory and create a new application using the following commands:
cd educa
django-admin startapp courses
Edit the settings...