Skip to content

Instantly share code, notes, and snippets.

View rodridev's full-sized avatar

Vladimir Rodriguez rodridev

  • Lima, Perú
View GitHub Profile
@jams2
jams2 / libgeos.py
Created December 2, 2019 14:53
Fixing Django/GEOS compatibility
"""The version regex in django/contrib/gis/geos/libgeos.py fails on
the latest homebrew geos install at time of writing, with message:
django.contrib.gis.geos.error.GEOSException: Could not parse version info string "3.8.0-CAPI-1.13.1 "
The trailing whitespace is the culprit. Add a r'\s?$' to the end of the pattern.
"""
version_regex = re.compile(
@dixneuf19
dixneuf19 / zsh-virtualenv-setup.md
Last active July 3, 2024 10:42 — forked from hminnovation/zsh-virtualenv-setup.md
Setup python, pip, virtualenv and virtualwrapper, with zsh on a new machine