0
Djnago error
How to remove this error, File "C:\Users\ADMIN3\Anish\Projects\mysite\polls\urls.py", line 3, in <module> from . import path
2 Antworten
0
Now getting this error,
CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.
0
I set this as Allowed_hosts but it's only running on local host but not on the other,
ALLOWED_HOSTS =[ 'localhost', '127.0.0.1:8000']
At local hosts its running but getting error at the second host of "Bad request 400"