Y
Y
Yarik Khinkin2020-11-20 13:45:39
Django
Yarik Khinkin, 2020-11-20 13:45:39

How to fix admin panel in django?

Why is the admin panel displayed incorrectly?
Before that, everything was displaying well.

spoiler
This is how she looked before5fb79e0f1647e972633177.png

spoiler
And this is what it looks like now

5fb79e260993a399999477.png
How to return the old admin panel?

UPD:
Link to the project https://yadi.sk/d/SC1mT44gvB4M0A

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Danny Arty, 2020-11-20
@yarik310501

Compare the paths to the style files in the page source code with the paths in the
upd browser console.
if in the console there is something like Resource interpreted as Stylesheet but transferred with MIME type application/x-css , then try adding it to setting.py

import mimetypes
mimetypes.add_type("text/css", ".css", True)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question