You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that a call to django collectstatic --clear will delete unique content uploaded by editors (it happened to me once when I tried to tidy up static folder after removing apps from a project; fortunately I had a backup!).
I don't think the 'ignore' feature of collectstatic is used by --clear so probably the cleanest option would be to move 'admin' outside 'static' (and update our default django-nginx templates to add the mapping to media):
We currently have the media folder inside static:
https://github.com/kingsdigitallab/django-bare-bones/blob/develop/project_name/settings/base.py#L227
The problem is that a call to django collectstatic --clear will delete unique content uploaded by editors (it happened to me once when I tried to tidy up static folder after removing apps from a project; fortunately I had a backup!).
I don't think the 'ignore' feature of collectstatic is used by --clear so probably the cleanest option would be to move 'admin' outside 'static' (and update our default django-nginx templates to add the mapping to media):
https://docs.djangoproject.com/en/2.1/ref/contrib/staticfiles/#collectstatic
The text was updated successfully, but these errors were encountered: