Skip to content

Instantly share code, notes, and snippets.

@mattharley
Last active August 29, 2015 14:04
Show Gist options
  • Save mattharley/a83ca60eaa0deae3b832 to your computer and use it in GitHub Desktop.
Save mattharley/a83ca60eaa0deae3b832 to your computer and use it in GitHub Desktop.
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