Sitemap
20_3242 SANDEEP

20_3242 SANDEEP

Getting Started — Django

Aug 26, 2023

--

Step-1: Creating a Virtual Environment

open command prompt and type

> py -m venv django_env

activate virtual environment

> django_env\scripts\activate.bat

Press enter or click to view image in full size

Step-2: Installing Django

In command prompt and type

> pip install django

Press enter or click to view image in full size

To Check Django version

Get 20_3242 SANDEEP’s stories in your inbox

Join Medium for free to get updates from this writer.

> python -m django — version

Press enter or click to view image in full size

Step-3: Creating Project

To view all Commands

> django-admin

Press enter or click to view image in full size

To create django project

> django-admin startproject django_project

> cd django_project

Press enter or click to view image in full size

Open created django_project in code editor

> tree

Press enter or click to view image in full size

Step-4: Start Server

> python manage.py runserver

open this url http://127.0.0.1:8000/ in browser

Press enter or click to view image in full size

--

--