admin page not found!!

15 views
Skip to first unread message

Saeed Pooladzadeh

unread,
Dec 3, 2018, 5:49:56 AM12/3/18
to Django users
Hello

Here comes my url page code 

from django.contrib import admin
from django.urls import path

urlpatterns = [
    path('admin/', admin.site.urls),
    #url(r'^polls/', include('polls.urls')),
]
  
When I run the the code and want to go to admin page I see this message:
 
Page not found!

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

  1. admin/

The current path, admin, didn't match any of these.


What is wrong with my code Please inform me.


Thanks

Reply all
Reply to author
Forward
0 new messages