Asinox
Asinox

Reputation: 6865

Force re-collectstatic with django static?

I need to know if I can "re-collectstatic files" with django static?, for error I deleted a static directory now, I'm trying collectstatic one more time and nothing happen..

Any idea?

Upvotes: 4

Views: 3545

Answers (2)

vaseemcholakkan
vaseemcholakkan

Reputation: 31

This will clear current files in the static directory and then collect static.

 python manage.py collectstatic --clear

Upvotes: 1

Waket Zheng
Waket Zheng

Reputation: 6331

I come here to see whether I can re-collectstatic without type 'yes'.

Finally, I find it just have to add --no-input

python manage.py collectstatic --no-input

Upvotes: 2

Related Questions