# Page not found (404)

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

Please post your root urls.py file.

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)

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:

But the error message is showing:

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

1 Like

Thank!!! :heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes: