Почему я получаю эту ошибку при использовании collectstatic?
settings.py
...
STATIC_URL = '/static/'
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'StaticFiles')
]
STATIC_ROOT = os.path.join(BASE_DIR, 'Assets/')
MEDIA_URL = '/media/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'Assets/res')
...
Когда я запускаю py manage.py collectstatic
. я получаю следующее сообщение в терминале:-
You have requested to collect staticfiles files at the destination
location as specified in your settings:
C:\Users\91788\OneDrive\Desktop\Projects\DebsocWebsite\staticfiles
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel: no
CommandError: Collecting staticfiles files cancelled.
(debsoc) C:\Users\91788\OneDrive\Desktop\Projects\DebsocWebsite>py manage.py collectstatic
You have requested to collect staticfiles files at the destination
location as specified in your settings:
C:\Users\91788\OneDrive\Desktop\Projects\DebsocWebsite\staticfiles
This will overwrite existing files!
Are you sure you want to do this?
Type 'yes' to continue, or 'no' to cancel:
Сообщение в терминале просто не совпадает с моей конфигурацией статических файлов в settings.py.
Как это исправить?