Skip to content

Glossary: Django Basics

ALLOWED_HOSTS

A setting that lists the host names your site will answer to, such as `YOURNAME.pythonanywhere.com`. Django refuses requests for any other name, which shows as `Bad Request (400)`.

Where the book teaches it

Related terms

DEBUGSECRET_KEYproduction