Ошибка при выполнении '$ python manage.py collectstatic --noinput'. remote: Подробнее см. отслеживание выше

remote:  !     Error while running '$ python manage.py collectstatic --noinput'.
remote:        See traceback above for details.
remote:
remote:        You may need to update application code to resolve this error.
remote:        Or, you can disable collectstatic for this application:
remote:
remote:           $ heroku config:set DISABLE_COLLECTSTATIC=1
remote:
remote:        https://devcenter.heroku.com/articles/django-assets
remote:  !     Push rejected, failed to compile Python app.
remote:
remote:  !     Push failed

Эту ошибку я получаю при развертывании своего приложения на Heroku. Я использовал базу данных postgres для хранения данных, и когда я пытаюсь развернуть приложение, оно выдает ошибку

код

DEBUG = False

ALLOWED_HOSTS = ['127.0.0.1','mca-blog-n.herokuapp.com']



 TEMPLATES = [
{
    'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': [BASE_DIR,'templates'],
    'APP_DIRS': True,
    'OPTIONS': {
        'context_processors': [
            'django.template.context_processors.debug',
            'django.template.context_processors.request',
            'django.contrib.auth.context_processors.auth',
            'django.contrib.messages.context_processors.messages',
        ],
    },
  },
 ]

  WSGI_APPLICATION = 'CrabbyCoder.wsgi.application'


 # Database
 # https://docs.djangoproject.com/en/3.0/ref/settings/#databases

  DATABASES = {
'default': {
    'ENGINE': 'django.db.backends.sqlite3',
    'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}


 # Static files (CSS, JavaScript, Images)
 # https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_ROOT=os.path.join(BASE_DIR,'staticfiles')
STATIC_URL = '/static/'
STATICFILES_DIRS=[
os.path.join(BASE_DIR,'static')
]
Вернуться на верх