Edit the following line in your settings.py file:
ALLOWED_HOSTS = ['127.0.0.1', 'localhost']
Restart your server afterwards
Edit the following line in your settings.py file:
ALLOWED_HOSTS = ['127.0.0.1', 'localhost']
Restart your server afterwards