Answer the question
In order to leave comments, you need to log in
How to edit static, css and js files in django with automatic collectstatic?
Good day!
I am developing a website hosted in the django framework.
When editing css and js static files, every time I have to type the python manage.py collectstatic command in the terminal in order for my changes to take effect, and I experiment in css very often and executing the command every time is not convenient and takes time.
does anyone know how to edit without having to run the collectstatic command or how to do it automatically?
Thanks in advance!!!
Answer the question
In order to leave comments, you need to log in
I found a solution to this problem myself. There is a special command for django.
just write in the terminal: pip install django-static-autocollect and Django will execute the command for you every time you update.
Wait, you supposedly uploaded the site to the hosting and edit it right away like that? And what prevents you from making a site on your computer using a local server and then deploying it? This is not good, it’s just that I’m not that experienced and I want to know why this is necessary.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question