avoid bad request django 1

avoid bad request django

ALLOWED_HOSTS = ['127.0.0.1', 'localhost']

Here is what the above code is Doing:
1. We’re importing the settings from the base.py file.
2. We’re overriding the DEBUG setting and setting it to True.
3. We’re overriding the ALLOWED_HOSTS setting and setting it to localhost.

Similar Posts