django-adminlte2 icon indicating copy to clipboard operation
django-adminlte2 copied to clipboard

How to use static files when debug false?

Open thawhtetkaung opened this issue 5 years ago • 1 comments

When I change debug false to in setting.py. The static files(css,js,...) are not load automatically. Is there any way to load that file. I am totally new to python and django.

thawhtetkaung avatar Jun 20 '19 05:06 thawhtetkaung

You need to set up static paths in your settings.py file and run this comand: python manage.py collectstatic

Look this link also: https://docs.djangoproject.com/en/2.2/howto/static-files/

JoseeeeeP avatar Jul 25 '19 15:07 JoseeeeeP