Pages : 1
#1 Le 25/12/2019, à 19:08
- cdevl
Django message d'erreur ?
Bonsoir,
j'ai suivi ce guide pour Django et je reçois ce message d'erreur : https://zestedesavoir.com/tutoriels/598 … un-projet/
je fais ceci pour me rendre sur mon vps :
python manage.py runserver 51.77.203.76:8000
ensuite je lance chrome python 51.77.203.76:8000 et je reçois ce message d'erreur :
DisallowedHost at /
Invalid HTTP_HOST header: '51.77.203.76:8000'. You may need to add u'51.77.203.76' to ALLOWED_HOSTS.
Request Method: GET
Request URL: http://51.77.203.76:8000/
Django Version: 1.11
Exception Type: DisallowedHost
Exception Value:
Invalid HTTP_HOST header: '51.77.203.76:8000'. You may need to add u'51.77.203.76' 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.17
J'ai Ubuntu 18.04 vps de chez ovh.
Pouvez vous m'aider ?
Hors ligne
Pages : 1