Categories
Python Answers

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

Spread the love

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.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *