Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jai-tom opened this issue Nov 14, 2023 · 2 comments
Open

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

jai-tom opened this issue Nov 14, 2023 · 2 comments

Comments

@jai-tom
Copy link

jai-tom commented Nov 14, 2023

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
Copy link

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.

@MayuDPatil
Copy link

I have enabled 8000 in inbound rule but still not able to load the site getting error

Not Found: /
[17/Nov/2024 05:19:22] "GET / HTTP/1.1" 404 2309

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants