How to Django — Setting up

Building your first Django website

Emily Y Leung
Geek Culture

--

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:

  1. Installing Django
  2. Commands for setting up and running the website
  3. Folder Structure
  4. Creating a Django app
  5. 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.

2 — Commands for setting up and running the…

--

--