Professional Documents
Culture Documents
Session 2 Creating Apps
Session 2 Creating Apps
Session 2 Creating Apps
Creating Apps
In Django
Session-2
simrantechmentor
Search . . .
Project is a collection of files and folders that are required to create the whole
01 functionality of a product.
simrantechmentor
Search . . .
Creating a project into multiple apps also allow you to reuse a particular app in another
05
project.
simrantechmentor
Search . . .
simrantechmentor
Step 1. Open Visual Studio Click Search . . .
Open Folder
simrantechmentor
Step 2. Select your project Search . . .
simrantechmentor
Step 3. Open Terminal as Search . . .
command prompt
1
simrantechmentor
Step 4. Activate Virtual Search . . .
Environment
simrantechmentor
Step 5. Create Your app Search . . .
simrantechmentor
Let’s Explore important App Files Search . . .
simrantechmentor
models.py file Search . . .
simrantechmentor
models.py file Search . . .
simrantechmentor
models.py file Search . . .
simrantechmentor
views.py file Search . . .
01 This file contains view functions that takes a web request and returns a web response.
simrantechmentor
views.py file Search . . .
simrantechmentor
apps.py file Search . . .
simrantechmentor
Step 6. Create urls.py file in app Search . . .
simrantechmentor
Step 7. Update urls.py file in app Search . . .
simrantechmentor
Step 8. Update urls.py file in project Search . . .
simrantechmentor
Step 9. Update views.py file in project Search . . .
simrantechmentor
Step 10. Run server and check output Search . . .
01 py manage.py runserver
simrantechmentor
Search . . .
THANK YOU
Kindly perform all in class exercise before coming to lab
END SLIDE
simrantechmentor
Contact No : 9878138788
Email : simran@webipher.com