Skip to content
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
All tools
Home
Tools
Django
Backend frameworks
Django
Python web framework.
Official documentation
Errors
1
Commands
1
Config
1
Cheat sheets
1
Changes
1
Compat
1
Codes
1
ImproperlyConfigured: Requested setting …, but settings are not configured
Django raises ImproperlyConfigured when code reads settings before DJANGO_SETTINGS_MODULE is set or settings.configure() runs. Set it, then call django.setup().
All Django error messages
python manage.py makemigrations and migrate: create and apply migrations
makemigrations turns model changes into migration files and migrate applies them to the database. Preview SQL with sqlmigrate, check state with showmigrations.
All Django commands
Django ALLOWED_HOSTS: values, wildcards and DisallowedHost errors
ALLOWED_HOSTS lists the host names a Django site may serve. Any other Host header raises DisallowedHost, a 400 error. Use exact names or .example.com.
All Django config reference
Django manage.py cheat sheet: project, migrations, users, testing
Django manage.py cheat sheet: startproject and startapp, makemigrations and migrate, createsuperuser, runserver, shell, check, test, collectstatic and dumpdata.
All Django cheat sheets
Django 5.2 to 6.1: breaking changes and upgrade notes
Upgrading from Django 5.2 LTS to 6.0 and 6.1: Python 3.12+, BigAutoField by default, https for URLField, CSP and background tasks, and calendar versioning.
All Django version changes
Python versions supported by each Django version
Python support per Django release: 5.2 LTS runs on Python 3.10 to 3.14; Django 6.0, 6.1 and 6.2 need 3.12 to 3.14, and 6.1.3+ adds 3.15. From the Django FAQ.
All Django compatibility
Django HttpResponse subclasses and their status codes
Django HttpResponse subclasses and their status codes: Redirect 302, PermanentRedirect 301, NotModified 304, BadRequest 400, Forbidden 403, NotFound 404.
All Django codes & tables
Esc