skip to Main Content

As I open Django admin page, a wide white box appears instead of the theme icon (using Django 4.2.1).

admin page as appears on production

While testing on Docker container, everything seems ok.

admin page while testing on Docker container

I have been looking at the documentation on overriding admin/base.html, but I’m not sure this is the issue.

Checking the log after deployment (on EC cloud), nothing comes to my attention.

I am letting serve the static content by nginx (1.23).

python manage.py collectstatic --noinput

Overall, all static files are working properly on the rest of the site.

I tried inspecting the element <button class="theme-toggle">. Nothing anomalous.

Everything looks normal to me. Apart from this, production looks identical to the Docker container.

2

Answers


  1. I had the same issue after updating to Django 4.2.1. Installing Django 4.2.0 instead fixed the toggle-theme issue and the (in my case unwanted) header "skip to main content" disappeared as well.

    Login or Signup to reply.
  2. Make sure to clear your browser cache and refresh the page after running collectstatic, that did it for me.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search