0
0
Djangoframework~5 mins

Django project structure walkthrough - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of the manage.py file in a Django project?
The manage.py file is a command-line utility that helps you interact with your Django project. You use it to run the server, create apps, run migrations, and more.
Click to reveal answer
beginner
What does the settings.py file control in a Django project?
The settings.py file holds all the configuration for your Django project, like database setup, installed apps, middleware, templates, and security settings.
Click to reveal answer
beginner
What is the role of the urls.py file in a Django project?
The urls.py file maps web addresses (URLs) to the code that should run when those addresses are visited. It helps Django know what to show for each page.
Click to reveal answer
intermediate
What is the difference between the project folder and an app folder in Django?
The project folder contains overall settings and configuration for your whole site. An app folder is a smaller part that does one job, like a blog or a shop, and can be reused in other projects.
Click to reveal answer
intermediate
What is the purpose of the wsgi.py file in a Django project?
The wsgi.py file helps your Django project communicate with web servers when you deploy your site live. It acts like a bridge between your code and the internet.
Click to reveal answer
Which file do you use to start the Django development server?
Asettings.py
Bmanage.py
Curls.py
Dwsgi.py
Where do you list the apps your Django project uses?
Aurls.py
Bmanage.py
Cwsgi.py
Dsettings.py
What does the urls.py file mainly do?
AMap URLs to views
BConfigure database settings
CRun server commands
DHandle static files
Which folder contains the main settings for the whole Django project?
AProject folder
BApp folder
CStatic folder
DTemplates folder
What is the role of wsgi.py?
ARun development server
BConfigure database
CBridge between Django and web server
DDefine URL patterns
Explain the main folders and files you find in a new Django project and what each one does.
Think about how Django organizes the whole site versus smaller parts.
You got /4 concepts.
    Describe how Django uses the urls.py file to handle web requests.
    Imagine URLs as street addresses and urls.py as the map.
    You got /3 concepts.