I am trying to deploy a django app to heroku i am already serving the static files using AWS and eveything seems to be working fine on the local server, i have committed the code to github repo and and now i want to deploy using heroku, i get this error on the process of deploying
Successfully built django-auto-logout django-formset-js-improved django-jquery-js django-mailgun-provider django-plaintext-password django-rest-auth django-rest-framework django-static-fontawesome psycopg2 rjsmin validate-email starkbank-ecdsa
Installing collected packages: validate-email, starkbank-ecdsa, rjsmin, pytz, python-decouple, django-widget-tweaks, django-tinymce, django-templated-mail, django-static-fontawesome, django-social-share, django-js-asset, django-dotenv, django-ckeditor-5, django-auto-logout, dj-database-url, whitenoise, urllib3, uritemplate, sqlparse, six, python-http-client, pyjwt, psycopg2-binary, psycopg2, Pillow, oauthlib, lxml, jmespath, idna, gunicorn, djoser, django-environ, django-crispy-forms, django-ckeditor, charset-normalizer, certifi, asgiref, sendgrid, requests, python-dateutil, Django, requests-oauthlib, djangorestframework, django-taggit, django-storages, django-plaintext-password, django-mailgun-provider, django-jquery-js, django-jazzmin, django-heroku, django-filter, botocore, s3transfer, djangorestframework-simplejwt, django-rest-framework, django-rest-auth, django-formset-js-improved, boto3
Successfully installed Django-3.2.7 Pillow-9.1.0 asgiref-3.5.0 boto3-1.20.26 botocore-1.23.54 certifi-2022.6.15 charset-normalizer-2.0.12 dj-database-url-0.5.0 django-auto-logout-0.5.0 django-ckeditor-6.0.0 django-ckeditor-5-0.1.6 django-crispy-forms-1.12.0 django-dotenv-1.4.2 django-environ-0.9.0 django-filter-21.1 django-formset-js-improved-0.5.0.2 django-heroku-0.3.1 django-jazzmin-2.4.8 django-jquery-js-3.1.1 django-js-asset-1.2.2 django-mailgun-provider-0.2.3 django-plaintext-password-0.1.0 django-rest-auth-0.9.5 django-rest-framework-0.1.0 django-social-share-2.2.1 django-static-fontawesome-5.14.0.0 django-storages-1.12.3 django-taggit-3.0.0 django-templated-mail-1.1.1 django-tinymce-3.4.0 django-widget-tweaks-1.4.8 djangorestframework-3.13.1 djangorestframework-simplejwt-5.2.0 djoser-2.0.5 gunicorn-20.0.4 idna-3.3 jmespath-0.10.0 lxml-4.6.2 oauthlib-3.2.0 psycopg2-2.8.6 psycopg2-binary-2.9.1 pyjwt-2.4.0 python-dateutil-2.8.2 python-decouple-3.5 python-http-client-3.3.7 pytz-2022.1 requests-2.27.1 requests-oauthlib-1.3.1 rjsmin-1.1.0 s3transfer-0.5.2 sendgrid-6.9.7 six-1.16.0 sqlparse-0.4.2 starkbank-ecdsa-2.0.3 uritemplate-4.1.1 urllib3-1.26.9 validate-email-1.3 whitenoise-5.2.0
-----> $ python manage.py collectstatic --noinput
Traceback (most recent call last):
File "/tmp/build_d4899f32/manage.py", line 29, in <module>
main()
File "/tmp/build_d4899f32/manage.py", line 25, in main
execute_from_command_line(sys.argv)
File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
utility.execute()
File "/app/.heroku/python/lib/python3.9/site-packages/django/core/management/__init__.py", line 363, in execute
settings.INSTALLED_APPS
File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/__init__.py", line 82, in __getattr__
self._setup(name)
File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/__init__.py", line 69, in _setup
self._wrapped = Settings(settings_module)
File "/app/.heroku/python/lib/python3.9/site-packages/django/conf/__init__.py", line 206, in __init__
raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)
ValueError: Incorrect timezone setting: africa/lagos
! Error while running '$ python manage.py collectstatic --noinput'.
See traceback above for details.
You may need to update application code to resolve this error.
Or, you can disable collectstatic for this application:
$ heroku config:set DISABLE_COLLECTSTATIC=1
https://devcenter.heroku.com/articles/django-assets
! Push rejected, failed to compile Python app.
! Push failed