Created
June 17, 2010 16:04
-
-
Save ingenieroariel/442324 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from geonode.maps.models import Map, Layer | |
from django.contrib.auth.models import User | |
default_user = User.objects.all()[0] | |
for m in Map.objects.all(): | |
m.owner = default_user | |
m.save() | |
for l in Layer.objects.all(): | |
l.owner = default_user | |
m.save() |
This file contains hidden or 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
source bin/activate | |
mv development.db src/GeoNode/capra | |
cd src/GeoNode/capra | |
./manage.py dumpdata maps --indent=4 >> mymaps.json | |
./manage.py reset maps | |
./manage.py shell | |
>>>import add_owner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment