Django - app to build reports using data retrieved from a REST-like API
Here's a hack I can think of that might work.
First, define a dummy database backend in addition to any other database you have:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'mydatabase'
},
'dummy': {
'ENGINE': 'django.db.backends.dummy',
'NAME': 'dummy'
}
Then define your non-db-model as you would. From there you have the using
functionality that can tell Django to use a specific backend for that call, and request to use the dummy backend:
objs = YourModel.objects.using('dummy').all()
Alternatively you just might also be able to get away with just creating the objects without ever save()
'ing them.