Professional Documents
Culture Documents
Session 1 Introduction To Django
Session 1 Introduction To Django
Session 1 Introduction To Django
Introduction
to
Django
Session-1
simrantechmentor
Search . . .
Django
03 MVT Architect
simrantechmentor
Django Setup Search . . .
01 Python
02 pip
03 Virtual environment
04 Django
simrantechmentor
Search . . .
Virtual Environment
simrantechmentor
Search . . .
cd <projectname>
02
03 py manage.py runserver
simrantechmentor
Search . . .
Demo Time
Pre-Project Steps
Search . . .
simrantechmentor
Search . . .
simrantechmentor
Step 3. Check pip is installed (One Search . . .
time)
simrantechmentor
Search . . .
simrantechmentor
Search . . .
Create Project
Steps→ Each Project
Search . . .
02 Change Directory : cd
simrantechmentor
Search . . .
simrantechmentor
Search . . .
simrantechmentor
Search . . .
simrantechmentor
Step 2. Create and activate Environment. Search . . .
simrantechmentor
Step 3. Activate Environment. (in case Search . . .
simrantechmentor
Step 3. Install django. Search . . .
simrantechmentor
Step 4. Check Django version. Search . . .
Django-admin --version
01
simrantechmentor
Step 5 . Create Project. Search . . .
simrantechmentor
Step 6 . Change Project Folder Search . . .
cd <projectname> cd firstproject
01
simrantechmentor
Step 7. Run Server Search . . .
py manage.py runserver
01
simrantechmentor
Step 8. Test Website Search . . .
simrantechmentor
Step 9. Close Webserver Search . . .
simrantechmentor
Step 10. Deactivate Environment Search . . .
Deactivate <environmentname>
01
simrantechmentor
Let’s Explore Project files Search . . .
simrantechmentor
manage.py file Search . . .
It is a utility that provide various commands that you must have while working with
02
Django project.
03 In simple language it is a command line utility that lets you work with Django project in
various ways.
simrantechmentor
manage.py file Search . . .
It is a utility that provide various commands that you must have while working with
02
Django project.
03 In simple language it is a command line utility that lets you work with Django project in
various ways.
simrantechmentor
urls.py file Search . . .
01 A URL is a web address. Every page on internet needs its own URL. With the help of URL
your application know which a user wants to see or do.
02 Django has his own way for URL mapping and it is done by editing urls.py file.
simrantechmentor
urls.py file Search . . .
simrantechmentor
settings.py file Search . . .
02 It holds all the configuration values that your web application need to work.
simrantechmentor
setting.py file Search . . .
simrantechmentor
wsgi.py file Search . . .
03 WSGI specifies simple rules that the server and application must conform to.
simrantechmentor
asgi.py file Search . . .
simrantechmentor
Search . . .
THANK YOU
Kindly perform all in class exercise before coming to lab
END SLIDE
simrantechmentor
Contact No : 9878138788
Email : simran@webipher.com