Skip to content

Instantly share code, notes, and snippets.

@leplatrem
Created April 5, 2013 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leplatrem/5317450 to your computer and use it in GitHub Desktop.
Save leplatrem/5317450 to your computer and use it in GitHub Desktop.
Repair South and GeoModel fields SRID
find . -name "????_*.py" | xargs sed -i "s/from django.db import models/from django.db import models\nfrom django.conf import settings/"
find . -name "????_*.py" | xargs sed -i "s/'32632'/'%s' % settings.SRID/g"
find . -name "????_*.py" | xargs sed -i "s/srid=32632/srid=settings.SRID/g"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment