Problem description: I am on the way to connect my domain but whenever I start django server no web view is provided . I cannot access it anymore.
Expected behavior: There should be a web view when server starts.
Actual behavior: There should be a web view whenever server starts but it shows nothing.
Hey there, are you setting the host to 0.0.0.0 when running the repl?
2 Likes
No ,I haven’t done that only entered local host entries in allowed host.
Hey @AayushSingh19, welcome to the forums!
As @IroncladDev, replace ALLOWED_HOSTS with this :
ALLOWED_HOSTS = [
"0.0.0.0", "localhost"
]
3 Likes
Thanks @hungoondev. Everything is fine now.
3 Likes
system
Closed
7
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.