Hey everyone,

While trying to load a json fixture, the contents are spitting out to
my bash shell but nothing is loading into the postgres database
backend.

>From inside my project directory, I'm executing the documented
command:

./manage.py loaddata data2.json

In addition to the contents, the only message I get from Django is:

"Installing json fixture 'data2' from absolute path."

But again, nothing is winding up in the database.

I should mention that this fixture was originally dumped from another
Django project. I renamed the Django app inside the fixture so that it
would match my new project (which otherwise has an identical schema).
While the updated fixture chokes, I'm able to successfully load a
fixture that was produced by after loading a portion of my data
manually thgrough the postgres backend.

Below are two slices from the fixture that works (budtype.json) and
the one that chokes (data2.json). Would love to hear if anyone has any
suggestions.

####budtype.json#########
#This fixture loads properly
    1 [
    2     {
    3         "pk": 1,
    4         "model": "reportcard.budtype",
    5         "fields": {
    6             "type": "K-6"
    7         }
    8     },
   <<snipped>>

####data2.json####
#This fixture does not load
    1 [
    2     {
    3         "pk": 1,
    4         "model": "reportcard.budtype",
    5         "fields": {
    6             "type": "K-6"
    7         }
    8     },
<<snipped>>

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

Reply via email to