Найден еще один файл с путем назначения 'admin'

Я пытаюсь развернуть приложение на Heroku, но когда я выполняю следующую команду: "python manage.py collectstatic", она возвращает множественное "Найден другой файл с путем назначения 'admin...". Когда я "git push heroku" приложение, я вижу ту же ошибку. Далее, приложение работает, но страница /admin не имеет никакого формата, как будто она не читает css, шрифт и т.д. Я проверил staticfiles/admin и там есть папки css, font, img и js с файлами. Я попробовал все советы, данные здесь, но я не нахожу решения. Вот мои настройки:

import os
import django_heroku

# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
.
.
.

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.0/howto/static-files/

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') #Heroku
#STATIC_ROOT = os.path.join(BASE_DIR, 'static') #ok for IBM Cloud

STATIC_URL = '/static/'

MEDIA_ROOT = os.path.join(STATIC_ROOT, 'media') # if I comment this line and
MEDIA_URL = '/media/' # this line, /admin page has correct css but I don't have images in the application  

# Extra places for collectstatic to find static files.(extra heroku)
STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static'),

)

#django_heroku.settings(locals()) #if uncommented, application doesn't work

А вот что я получаю, когда "git push heroku master":

remote:        Found another file with the destination path 'admin/img/selector-icons.svg'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
remote:        Found another file with the destination path 'admin/img/calendar-icons.svg'. It will be ignored since only the first encountered file is collected. If this is not what you want, make sure every static file has a unique path.
.
.
.

Помогите пожалуйста

Вернуться на верх