Create Your First Web-App With Python-Django Framework Tutorial

python-Django Framework

Posted by indranil on March 9, 2021, 11:44 a.m.

Python is an interpretedhigh-level and general-purpose programming languageGuido van Rossum began working on Python in the late 1980's, as a successor to the ABC programming language, and first released it in 1991 as Python 0.9.1.

Django is a Python-based free and open-source web framework that order to follow  model-template-views (MTV) architectural pattern. The framework was named after guitarist Django Reinhardt.[20] Adrian Holovaty is a Romani jazz guitar player and a big fan of Django Reinhardt. In June 2008, it was announced that a newly formed Django Software Foundation (DSF) would maintain Django in the future.

django python tutorial

Django is a python based open-source web framework. Devloper also love this platfrom for create their website beacuse some of cases python and django all ready provide Built In Module. Built In Module is nothing  just someone write a script and provide us to use and empliment for our project.

Required Tool and skills 
       If you dont have a install python on your operating system then Download Python-3.7.1 for biggners. Dont install Python 2.0 version beacuse this versions support team already died!

Python Download

  For 64 bit :

For 32 bit :

pip install python

         pip is a package manager for Python. That means it's a tool that allows               you to install and manage additional libraries and dependencies that are             not distributed as part of the standard library.

         If pip not installed on your system then uninstall your python and install               again follow by this step.



                                                   Check Your Pip



python basics

  • Python was designed for readability, and has some similarities to the English language with influence from mathematics.


  • Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses.


  • Python relies on indentation, using whitespace, to define scope; such as the scope of loops, functions and classes. Other programming languages often use curly-brackets for this purpose.


  1. You will get the output as "Hello World" in your terminal.

     So, this is our first python program, and in this program, we just used a print       function. In this function, whatever we pass in parenthesis () in a double              quote or single quote gets printed (as it is) in the terminal.

      Make sure you have written and executed the below code to get a feel of             what it looks like!

print("Hello world!")
#Type Of Variable 

a = 34 # Variable integer b = 23.2 # Variable Float
c = "coder-i" # Variable string
d = True #Boolean Only True or False
d = False #Boolean Only True or False
#Basic Calculation and knowladge about python

abc = "It's a string variable" _abcnum = 40 # It is an example of int variable abc123 = 55.854 # It is an example of float variable print(_abcnum + abc123) # This will give sum of 40 + 55.854
# type() Function in Python:
a = "40" 
demo = 55.5 
demo = 40 
print (type(a)) #It will give output as string type 
demo3 = type(demo) #It will return data type as float 
print(demo3) #It will print that data type 
print(type(demo2)) #It will give output as int type  
#Non Calculation

var1 = "It's a String" var2 = 5 print(var1+var2) #It will give an error as we can't add string to any number.
var1 = "My Name is "
var2 = "neel"
var3 = var1+var2+" & I am a Good Boy."
print(var1+var2) # It will give output 'My Name is neel'
# Typecasting in Python :
abc = 5 
abc2 = '45'
abc3 = 55.95
xyz = 5.0


print(abc+abc4) # Output : 50 
print(abc+int(abc2)) # Output : 50 

print(float(abc)+xyz) # It will add 5.0 + 5.0 and will return 10.0

print(str(abc)+45) # It will give an error as abc has been changed into string.

#If Else Condition For Most Important

if 0<1:
    print("High  from 0 ")
elif 0>1:
   print("Naver Show this condition")
#For loop

items = [int, float, "neel", 5,3, 3, 22, 21, 64, 23, 233, 23, 6] for item in items:

#Try Except Condition

a = 7
b = 9
try: c = (a+b) except Exception as e: print(e) print("This line is very important")

Lets Back To The Django Tutorial:

 Before start django project we need to install django module.
 Lets open you cmd

pip install django

Now create a new folder django-project

Then Open It On Visual-studio-Code Or Pycharm

Open Terminal

django-admin startproject djangoproject .
python makemigrations
python migrate
python createsuperuser

Enter Your username, email is not compalsary, and password, confirm passrord

python runserver

Click This Link

django web-app tutorial

    If your project has been started then you should be learn (Click this link     

Some Django Related Question's:

how to  to create django webapp and manage it

how to  link django webapp on django-project?

how to  to render html templates on django project?

what is static file? how to access static file on your project?


Share This Link If this Post is helpful for you............


noimg Visit Link: