Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Django collecstatic with crontab

Tags:

django

cron

I have Django website with scraper 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...

like image 869
blaz1988 Avatar asked Apr 07 '26 11:04

blaz1988


1 Answers

Did you try that command?

python manage.py collectstatic --noinput

like image 87
Jurudocs Avatar answered Apr 10 '26 18:04

Jurudocs