OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Django admin showing a white box instead of toggle theme icon

  • Thread starter Thread starter Domenico Spidy Tamburro
  • Start date Start date
D

Domenico Spidy Tamburro

Guest
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).

Code:
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.
<p>As I open Django admin page, a wide white box appears instead of the theme icon (using Django 4.2.1).</p>
<p><a href="https://i.sstatic.net/dXqnL.png" rel="noreferrer"><img src="https://i.sstatic.net/dXqnL.png" alt="admin page as appears on production" /></a></p>
<p>While testing on Docker container, everything seems ok.</p>
<p><a href="https://i.sstatic.net/zoDtk.png" rel="noreferrer"><img src="https://i.sstatic.net/zoDtk.png" alt="admin page while testing on Docker container" /></a></p>
<p>I have been looking at the <a href="https://docs.djangoproject.com/en/4.1/ref/contrib/admin/#theming-support" rel="noreferrer">documentation</a> on overriding admin/base.html, but I'm not sure this is the issue.</p>
<p>Checking the log after deployment (on EC cloud), nothing comes to my attention.</p>
<p>I am letting serve the static content by nginx (1.23).</p>
<pre><code>python manage.py collectstatic --noinput
</code></pre>
<p>Overall, all static files are working properly on the rest of the site.</p>
<p>I tried inspecting the element <code><button class="theme-toggle"></code>. Nothing anomalous.</p>
<p>Everything looks <em>normal</em> to me. Apart from this, production looks identical to the Docker container.</p>
 

Online statistics

Members online
0
Guests online
4
Total visitors
4
Top