Forums

Django admin css problem

Hi!

I have a new app made with Django. In the App menu I added the static directory and ran python3 manage.py collectstatic.

The page appears well but the admin page looks bad without styles. I searched for the location of the admin static and after this I added a line to the static part in the App menu:

/home/.../.virtualenvs/...-virtualenv/lib/python3.9/site-packages/django/contrib/admin/static/admin

Refreshed the app and nothing changed. What am I doing wrong?

We have a help page on that issue, see: https://help.pythonanywhere.com/pages/DjangoAdminCSSNotWorking/.