How to Django — Setting up
Building your first Django website
Published in
4 min readAug 19, 2021
Prerequisites
Before you jump into building websites using Python and Django, make sure you have a grasp of Virtual Environments.
Process of building a Django Website:
- Installing Django
- Commands for setting up and running the website
- Folder Structure
- Creating a Django app
- Hello World
1 — Installing Django
To get into building with Django, we first need to install this package.
- Open Command Prompt
- Navigate and activate your virtual environment
- Pip install Django
pip install Django
- Verify that Django can be seen by Python. To do this, run Python in your Command Prompt
python>>> import django>>> print(django.get_version())
2.1.2 <-- This is what I am using at the moment.
If you are having problems and cannot seem to get a version. Check the Django docs.