P
P
Poul002020-10-25 20:40:45
Django
Poul00, 2020-10-25 20:40:45

How to change the admin panel design in Django?

In the site project in static in base.css, I wrote my code, not knowing what base.css is responsible for, as a result, the admin panel is displayed with my style, even after I wrote another code in base.css, which should initially be there maybe nothing has changed. Moreover, even in new projects, the admin panel is displayed with my style. How can I fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Bazarnov, 2021-07-08
@bazden

I'm surprised no one has answered your question so far.
1) Check the STATIC_URL variable in the setting.py file. The variable should point to your folder with static content
2) If it doesn't help, redefine the base.html file and manually write the path to your base.css in it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question