in the settings.py of your project, check line 28, where is the Allows Host
settings.py
ALLOWED_HOSTS = ['IP', 'servidor', ]
you must put the IP and the server you use, level local or web settings.py
ALLOWED_HOSTS = ['127.0.0.1', 'localhost', 'www.ejemplo.com']
or
ALLOWED_HOSTS = ['*']