Forums

I cannot see django administration page even after entering proper URL

when I open django administration page by adding "/admin" to my original URL instead of showing admin ligin page it shows me the index page itself.

That sounds like the urls that you've defined in Django make /admin point to your index view. Check your urls definitions.

Use the URL in your main project's urls.py ( in the same directory where your WSGI.py file exists).

sample code:

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

 urlpatterns = [
          path('admin/', admin.site.urls),
  ]