Django can't find urls

Page not found in django. I already built startapp named posts already update the settings.py - apps - posts and put include in urls.py. still doesn't work, before posts, I have sample html file since I'm just learning, they both worked, posts doesn't.

Page not found (404)
Request Method: GET
Request URL:    http://127.0.0.1:8000/posts/
Using the URLconf defined in mine.urls, Django tried these URL patterns, in this order:
admin/
home/
profile/
posts posts/

The current path, posts/, didn’t match any of these.

I did try rework or rewrite it, but still same error. YT don't have errors but I have

Based on the error message, you will need to visit:

http://127.0.0.1:8000/postsposts/

Indeed, one posts for the include you probably have, and one for the path(…), you thus should change one of the two to an empty path.

Back to Top