Comments (3)
I found the source of the error. django.db.models.loading is deprecated. I changed the import in dump_object.py to:
try:
from django.db.models import loading
except:
from django.apps import apps
and further down...
try:
dump_me = loading.get_model(app_label, model_name)
except:
dump_me = apps.get_model(app_label, model_name)
from django-fixture-magic.
Thanks @ncp1113 I'll reopen it as a reminder for myself to change this. This code is way out of date for the new version of Django and doesn't quite support Py2 and Py3 at the same time.
from django-fixture-magic.
We can probably close this now that #38 is merged.
from django-fixture-magic.
Related Issues (20)
- Why you don't support Python3? HOT 5
- Custom dump nested deps HOT 3
- unexpected keyword argument 'use_natural_foreign_keys' HOT 3
- Issue while dumping a single object HOT 3
- dump_object fails to parse command arguments correctly HOT 7
- merge_fixtures is having some problem parsing parameters with Python 3 HOT 17
- dump_object args parsing problem
- merge_fixtures is having some problem parsing parameters HOT 1
- Pip installs wrong version from PyPi HOT 10
- dump_object fails on '*' HOT 2
- query using the call_command HOT 1
- merge_fixtures should write to stdout HOT 2
- 1146, "Table 'db.table_name' doesn't exist" - error HOT 1
- Could not dump objects until I modified dump_object.py as per comment HOT 1
- dump_object does not follow object relations HOT 5
- dump_object with query parameter throwing JSONDecodeError
- Is this project still being developed? HOT 4
- implement CI workflow to publish to pypi.
- Unable to dump BinaryField
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-fixture-magic.