Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Build Geos and Collectstatic

was originally using these buildpacks: https://github.com/GramercyStudios/heroku-geo-buildpack.git#1.1 https://github.com/heroku/heroku-buildpack-python.git#v40

got this error when i pushed: Collectstatic configuration error. To debug, run .....

when i ran: heroku run .... collectstatic everything was fine!!!

so i had to patch the python buildpack: https://github.com/mattharley/heroku-buildpack-python/commit/807ac1344b01daa8ccc5da0774adeb55fae3b6f5

then i got when i pushed: -----> Preparing static assets Traceback (most recent call last): .... django.core.exceptions.ImproperlyConfigured: Could not import user-defined GEOMETRY_BACKEND "geos".

so i found a newer fork of heroku-geo-buildpack which had two newer commit to fix everything: https://github.com/Tekco/heroku-geo-buildpack/commits/master

Thanks

To this stack overflow post Heroku/Django: Could not import user-defined GEOMETRY_BACKEND “geos”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.