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

28th Apr 2020, 1:42 AM
Anish Pandey
Anish Pandey - avatar
2 ответов
0
Now getting this error, CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.
28th Apr 2020, 1:52 AM
Anish Pandey
Anish Pandey - avatar
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"
28th Apr 2020, 2:15 AM
Anish Pandey
Anish Pandey - avatar