Your configurations don't conform with some of the details of this post. If you follow through, the following is not needed:
... GEOS_LIBRARY_PATH = '/app/.heroku/vendor/lib/libgeos_c.so' if os.environ.get('ENV') == 'HEROKU' else os.getenv('GEOS_LIBRARY_PATH') GDAL_LIBRARY_PATH = '/app/.heroku/vendor/lib/libgdal.so' if os.environ.get('ENV') == 'HEROKU' else os.getenv('GDAL_LIBRARY_PATH')
They are the prime suspects of your issues.
I added that when i discovered the issue, removing it still reproduces the issue. I am on Django 3.2.1 and Heroku 20
Did you add any buildpack aside the default one heroku gives?
no
GDAL can't work on heroku without you adding external buildpack to help you build Geospatial configurations. That is why I recommend you go through this article again and implement the stuff suggested. They are easy and not detrimental.
The error you are getting sterms from directing heroku to look for buildpacks and runtimes in arbitary paths that do not really exist.
i added this heroku buildpacks:add --index 1 github.com/heroku/heroku-geo-build... according to your article
In your settings.py, add this to the bottom of the file:
settings.py
DATABASES['default']['ENGINE'] = 'django.contrib.gis.db.backends.postgis'
in my settings, i already added Database Engine and the error i am getting is related to the library gdal
What database are you using? And do you use heroku's dj_database_url?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Your configurations don't conform with some of the details of this post. If you follow through, the following is not needed:
They are the prime suspects of your issues.
I added that when i discovered the issue, removing it still reproduces the issue. I am on Django 3.2.1 and Heroku 20
Did you add any buildpack aside the default one heroku gives?
no
GDAL can't work on heroku without you adding external buildpack to help you build Geospatial configurations. That is why I recommend you go through this article again and implement the stuff suggested. They are easy and not detrimental.
The error you are getting sterms from directing heroku to look for buildpacks and runtimes in arbitary paths that do not really exist.
i added this heroku buildpacks:add --index 1 github.com/heroku/heroku-geo-build...
according to your article
In your
settings.py
, add this to the bottom of the file:in my settings, i already added Database Engine and the error i am getting is related to the library gdal
What database are you using? And do you use heroku's dj_database_url?