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."
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.
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."