Найти - Пользователи
Полная версия: Проблемы с fixtures
Начало » Google App Engine » Проблемы с fixtures
1
walter
Использую google-app-engine-django, Django 1.2, dev_appengine 1.4.2. В
хранилище данные добавил из shell. На странице (через view)
отображаются нормально. Когда пытаюсь выполнить

python manage.py dumpdata myapp > fixture.json

файл создается, но пустой, вернее с содержит две квадратные скобки.
Делаю файл вручную
[
{
“model”:“myapp.news”,
“pk”:25,
“fields”:{
“title”:“Title News Check One”,
“body”:“Body News Check One”
}
}
]

Когда делаю python manage.py loaddata myapp/fixtures/fixture.json

то получаю ошибку DeserializationError: Invalid model identifier:
'myapp.news'

При выполнении тестов данные тоже не подгружаются. Подгружать пытаюсь
в классе-наследнике TestCase через fixtures = .

В чем моя ошибка?
vaxXxa
В использовании Django (и всяких его клонов) на GAE.
Вы уверены, что команды dumpdata и loaddata переписали под BigTable?
walter
У меня самого такие подозрения есть, но вот что написано на стартовой странице помощника google-app-engine-django:

This project provides a helper that eases the process of creating a Django project to run on the Google App Engine.

The helper currently provides:

* The ability to use most manage.py commands
* A BaseModel class that appears the same as the standard Django Model class.
* The ability to serialize and deserialize model instances to JSON, YAML and XML.
* Access to Django's test framework with a test datastore and support for fixtures.
* The ability to send email via the App Engine mail API using the standard Django mail functions.
* An App Engine compatible implementation of the Django authentication framework. Only users are supported at this time. Group and Permission support is not implemented.
* Support for the Django memcache cache backend module.
* Support for the db and cache session backed modules.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB