Recall & Review
beginner
What command do you use to create a new Django project?
You use
django-admin startproject projectname to create a new Django project folder with the basic setup.Click to reveal answer
beginner
What files are created automatically when you start a new Django project?
Django creates
manage.py and a project folder containing __init__.py, settings.py, urls.py, and asgi.py and wsgi.py.Click to reveal answer
beginner
What is the purpose of the
manage.py file in a Django project?manage.py is a command-line utility that helps you interact with your Django project, like running the server or making migrations.Click to reveal answer
beginner
How do you start the development server after creating a Django project?
Navigate to your project folder and run
python manage.py runserver. This starts a local web server you can visit in your browser.Click to reveal answer
beginner
Why is it important to create a virtual environment before starting a Django project?
A virtual environment keeps your project’s Python packages separate from others, avoiding conflicts and making your setup clean.
Click to reveal answer
Which command creates a new Django project named 'myproject'?
✗ Incorrect
The correct command is
django-admin startproject myproject.What file do you use to run the Django development server?
✗ Incorrect
You run the server using
python manage.py runserver.Which of these files is NOT created automatically when starting a Django project?
✗ Incorrect
models.py is created inside apps, not the main project folder.Why should you use a virtual environment for Django projects?
✗ Incorrect
Virtual environments keep dependencies isolated per project.
After creating a Django project, what is the next step to see it in a browser?
✗ Incorrect
Running the server lets you view the project in your browser.
Describe the steps to create and start a new Django project from scratch.
Think about setting up the environment, creating the project, and running the server.
You got /5 concepts.
Explain the role of the manage.py file in a Django project.
Consider what you do with manage.py commands.
You got /4 concepts.