How to fix Python Django admin site not have styles or CSS loading?

Sometimes, we want to fix Python Django admin site not have styles or CSS loading.

In this article, we’ll look at how to fix Python Django admin site not have styles or CSS loading.

How to fix Python Django admin site not have styles or CSS loading?

To fix Python Django admin site not have styles or CSS loading, we run the collectstatic command.

For instance, we run

python manage.py collectstatic

in our app project after the STATIC_ROOT and STATIC_URL settings are set.

Conclusion

To fix Python Django admin site not have styles or CSS loading, we run the collectstatic command.