Junior — Middle
What type of database is used by default in Django?
sobes.tech AI
Answer from AI
By default, Django uses the SQLite database.
This is an embedded lightweight relational database in Python that does not require a separate server and is ideal for development and testing.
In the settings.py configuration file, it looks like this:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
For production, more powerful DBMS such as PostgreSQL or MySQL are usually chosen.