I've been seraching the forums and also tried what most answers advised to.
Error Msg:
DisallowedHost at / Invalid HTTP_HOST header: 'theile-albrecht.de'. You may need to add u'theile-albrecht.de' to ALLOWED_HOSTS. Request Method: GET Request URL: http://theile-albrecht.de/ Django Version: 1.11.15 Exception Type: DisallowedHost Exception Value:
Invalid HTTP_HOST header: 'theile-albrecht.de'. You may need to add u'theile-albrecht.de' to ALLOWED_HOSTS. Exception Location: /usr/local/lib/python2.7/dist-packages/django/http/request.py in get_host, line 113 Python Executable: /usr/bin/python Python Version: 2.7.12 Python Path:
['/home/django/django_project', '/home/django/django_project', '/usr/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages'] Server time: Sat, 4 Aug 2018 08:33:11 +0000
That's what I did:
ALLOWED_HOSTS = ['theile-albrecht.de']
I also tried:
ALLOWED_HOSTS = ['*'] aswell as localhost
After each try I restarted the server but didnt work