Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » using dumpdata on an application with non managed models [RSS Feed]

#1 June 18, 2010 10:38:03

Florian L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

using dumpdata on an application with non managed models


Hi,

I'm trying to run dumpdata on an application which use severals non-
managed models. For example:

class testModel(models.Model):
class Meta:
managed = False

Unfortunately, when I run ./manage.py dumpdata myapp ; the following
happens :

Traceback (most recent call last):
File "./manage.py", line 11, in <module>
execute_manager(settings)
(...)
django.db.utils.DatabaseError: no such table: myapp_testmodel


1. Am I wrong to expect that dumpdata should follow the managed =
False instruction and not attempt to load data from this non-existant
table ?

2. Does anyone has a suggestion on how to proceed ? Any solution not
involving listing each of the impacted models in --exclude will be
welcome.


Thanks,

--
Florian

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » using dumpdata on an application with non managed models [RSS Feed]

Board footer

Moderator control

Enjoy the 13th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support