Created
April 5, 2013 08:02
-
-
Save leplatrem/5317450 to your computer and use it in GitHub Desktop.
Repair South and GeoModel fields SRID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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