Test yourself under real exam conditions: 50 timed questions, 60 on the clock, pass mark 70%%. Instant score with a full review of everything you got wrong. Free — no account needed.
Exam details
Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It follows the MTV (Model-Template-View) architectural pattern and includes built-in features like an ORM, admin interface, and authentication system.
MTV stands for Model-Template-View:
Use the command:django-admin startproject myproject
This generates the project directory with settings.py, urls.py, wsgi.py, asgi.py, and manage.py.
Run:python manage.py startapp myapp
Then add 'myapp' to the INSTALLED_APPS list in settings.py to register it with the project.
A Django model is a Python class that subclasses django.db.models.Model. Each model maps to a single database table, and each attribute represents a database column. Example:class Article(models.Model):
title = models.CharField(max_length=200)