# \# Page not found (404)

**URL:** <https://forum.djangoproject.com/t/page-not-found-404/28874>\
**Category:** Mystery Errors\
**Created:** [March 8, 2024, 7:16pm UTC](https://forum.djangoproject.com/t/page-not-found-404/28874 "2024-03-08T19:16:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SanduAndreea22](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sanduandreea22/32/19753_2.png) [@SanduAndreea22](https://forum.djangoproject.com/u/SanduAndreea22)\
**Post date:** [March 8, 2024, 7:16pm UTC](https://forum.djangoproject.com/t/page-not-found-404/28874/1 "2024-03-08T19:16:11Z")

</div>

```auto
# Page not found (404)

“D:\IT\PYTA\mini magazin online\commerce\admin” does not exist

|Request Method:|GET|
| --- | --- |
|Request URL:|http://127.0.0.1:8000/admin|
|Raised by:|django.views.static.serve|

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

1. admin/
2. [name='store']
3. perfum/<slug:slug>/ [name='perfum-info']
4. perfum/<str:category>/ [name='perfum-by-category']
5. cart/ [name='cart-summary']
6. add/<int:id>/ [name='cart-add']
7. delete [name='cart-delete']
8. update [name='cart-update']
9. checkout/ [name='checkout']
10. complete-order [name='complete-order']
11. order-success [name='order-success']
12. register [name='register']
13. my-login/ [name='my-login']
14. user-logout [name='user-logout']
15. dashboard [name='dashboard']
16. track-orders [name='track-orders']
17. delete/<int:id>/ [name='cart-delete']
18. update/<int:id>/ [name='cart-update']
19. ^(?P<path>.*)$

The current path, `admin`, matched the last one.

```

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 8, 2024, 7:20pm UTC](https://forum.djangoproject.com/t/page-not-found-404/28874/2 "2024-03-08T19:20:09Z")

</div>

Please post your root urls.py file.

---

<div class="post-metadata">

**Author:** ![SanduAndreea22](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sanduandreea22/32/19753_2.png) [@SanduAndreea22](https://forum.djangoproject.com/u/SanduAndreea22)\
**Post date:** [March 8, 2024, 7:27pm UTC](https://forum.djangoproject.com/t/page-not-found-404/28874/3 "2024-03-08T19:27:22Z")

</div>

```auto
urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('store.urls')),

]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
# urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)

```

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [March 8, 2024, 7:29pm UTC](https://forum.djangoproject.com/t/page-not-found-404/28874/4 "2024-03-08T19:29:14Z")

</div>

Side note: When posting code here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted. (I’ve taken the liberty of fixing your original post for you.)

Your url is defined as:

> [@SanduAndreea22](#):
>
> path(‘admin/’, admin.site.urls),

But the error message is showing:

> [@SanduAndreea22](#):
>
> [http://127.0.0.1:8000/admin](http://127.0.0.1:8000/admin)

These URLs are not the same. (“admin” is not the same as “admin/”)

---

<div class="post-metadata">

**Author:** ![SanduAndreea22](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/sanduandreea22/32/19753_2.png) [@SanduAndreea22](https://forum.djangoproject.com/u/SanduAndreea22)\
**Post date:** [March 8, 2024, 7:36pm UTC](https://forum.djangoproject.com/t/page-not-found-404/28874/5 "2024-03-08T19:36:32Z")

</div>

Thank!!! 😍 😍 😍 😍 😍 😍 😍 😍
