filmov
tv
#3 Django tutorials | First App in Django - part 1

Показать описание
Check out our courses:
Coupon: TELUSKO10 (10% Discount)
For More Queries WhatsApp or Call on : +919008963671
In this lecture we will learn about:
#1 types of web application
#3 what is inside a django project
#4 how to create a first app in django
#5 what is inside our calc app folder
first App in Django
#1 we want to build web application
we have two types of web application
1. static web application
2. dynamic web application
Some sites you visit is static web application
e.g visit first time you will get the same page in facebook, twitter, google, etc
which are same for all users
some sites you visit is dynamic web application
e.g my bankaccount detail is different from your bankaccount detail
which are different for all users
for making static web application we use html, css, javascript
Now for making dynamic web application we use Django
Django is a python based web framework
first program:
print hello world using django
Here we are using visual studio for our work
open folder projects thats are created in our 2nd lecture
which are has a separate virtual environment for each project
#2 in this project we have lots of file
inside projects
we have a folder named as telusko
inside telusko there are 3 files
inside telusko there are
1. __init__.py
and one folder __pycache__
a) we have secret key
b) we have debug (remember before deployment we have to change it to false)
c) we have installed apps
d) we have templates
e) we have databases (by default it is sqlite3)
#3 we have to create a app
-- to create a app open terminal and type
-- to create calc app
-- to change to our virtual environment
-- to change directory to our project
-- just go on telusko folder and open terminal and type workon test
-- now we are in test
-- now we have a folder named as calc
-- inside this we have differnt file
#5 what is inside our calc app folder
class CalcConfig(AppConfig):
name = 'calc'
-- CalcConfig is a class which is important.
-- it is used to hold data
-- it is used to test our application
-- it is used to render our html page
Editing Machines & Monitors :
Subscribe to our other channel:
Donation & Support:
PayPal Id : navinreddy20
Patreon : navinreddy20
Coupon: TELUSKO10 (10% Discount)
For More Queries WhatsApp or Call on : +919008963671
In this lecture we will learn about:
#1 types of web application
#3 what is inside a django project
#4 how to create a first app in django
#5 what is inside our calc app folder
first App in Django
#1 we want to build web application
we have two types of web application
1. static web application
2. dynamic web application
Some sites you visit is static web application
e.g visit first time you will get the same page in facebook, twitter, google, etc
which are same for all users
some sites you visit is dynamic web application
e.g my bankaccount detail is different from your bankaccount detail
which are different for all users
for making static web application we use html, css, javascript
Now for making dynamic web application we use Django
Django is a python based web framework
first program:
print hello world using django
Here we are using visual studio for our work
open folder projects thats are created in our 2nd lecture
which are has a separate virtual environment for each project
#2 in this project we have lots of file
inside projects
we have a folder named as telusko
inside telusko there are 3 files
inside telusko there are
1. __init__.py
and one folder __pycache__
a) we have secret key
b) we have debug (remember before deployment we have to change it to false)
c) we have installed apps
d) we have templates
e) we have databases (by default it is sqlite3)
#3 we have to create a app
-- to create a app open terminal and type
-- to create calc app
-- to change to our virtual environment
-- to change directory to our project
-- just go on telusko folder and open terminal and type workon test
-- now we are in test
-- now we have a folder named as calc
-- inside this we have differnt file
#5 what is inside our calc app folder
class CalcConfig(AppConfig):
name = 'calc'
-- CalcConfig is a class which is important.
-- it is used to hold data
-- it is used to test our application
-- it is used to render our html page
Editing Machines & Monitors :
Subscribe to our other channel:
Donation & Support:
PayPal Id : navinreddy20
Patreon : navinreddy20
Комментарии