iam-veeramalla / Docker-Zero-to-Hero

Repo to learn Docker with examples. Contributions are most welcome.
https://www.youtube.com/@AbhishekVeeramalla
3.72k stars 7.48k forks source link

Page not found (404) in the Django project. #23

Open jai-tom opened 10 months ago

jai-tom commented 10 months ago

After containerisation when accessing the website using given port address error message shows as follows:

==================================

"Using the URLconf defined in devops.urls, Django tried these URL patterns, in this order:

demo/ admin/ The empty path didn’t match any of these.

You’re seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page."

HemanthGangula commented 7 months ago

I've encountered a similar issue before. Ensure the URL is in the following format: http://:8000/demo/, like this: http://10.0.1.2:8000/demo/. Make sure to replace with the actual public IP address of your EC2 instance. Also, make sure you have enabled port 8000 in the inbound rules of your EC2 instance's security group. This should resolve the problem.