Closed GoogleCodeExporter closed 8 years ago
Same error on Ubuntu 10.04 with Django 1.2.3.
1. python2.5 manage.py shell
2. Create some data in the datastore. Anything so that it's not empty.
3. python2.5 manage.py dumpdata --indent 4 >
apps/exersize/fixtures/exersizes.json
4. Some manual modifications to the json so that it behaves with my
StringListProperty.
5. python2.5 manage.py loaddata apps/exersize/fixtures/exersizes.json
Problem installing fixture
'/home/chris/devspace/fitnesshacking/gae/apps/exersize/fixtures/exersizes.json':
Traceback (most recent call last):
File "/home/chris/devspace/fitnesshacking/gae/django.zip/django/core/management/commands/loaddata.py", line 172, in handle
obj.save(using=using)
TypeError: save() got an unexpected keyword argument 'using'
I've gotten past the error by modifying 'appengine_django/__init__.py' on line
333.
def save(self, save_m2m=True):
becomes
def save(self, save_m2m=True, using=None):
I proceed to not do anything with the 'using' parameter (same as the existing
save_m2m). It looks related to Django 1.2's new multi database support and thus
irrelevant to app engine. Caveat Emptor.
Original comment by cher...@gmail.com
on 15 Nov 2010 at 4:10
This issue was closed by revision r112.
Original comment by m...@google.com
on 18 Nov 2010 at 6:47
Original issue reported on code.google.com by
apocheku...@gmail.com
on 1 Nov 2010 at 3:19