Django collecstatic with crontab

余生长醉 提交于 2019-12-11 19:58:19

问题


I have Django website with scrapper which every day download images, so I want to automate collectstatic with crontab I tried this add to crontab.cr

yes | python2.7 manage.py collectstatic

but I get error :

You have requested to collect static files at the destination location as specified in your settings:

/home/mojbutik/webapps/webshop/myproject/static

This will overwrite existing files! Are you sure you want to do this?

CommandError: Collecting static files cancelled.

Can someone tell me how to do it...


回答1:


Did you try that command?

python manage.py collectstatic --noinput



来源:https://stackoverflow.com/questions/27323350/django-collecstatic-with-crontab

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!