Unknown Command when running django-admin loadtestdata [options]
Closed this issue · 3 comments
gmehta-personal commented
- Installed django-autofixture using pip install
- Added "autofixture" to INSTALLED_APPS. I know its installed because it does NOT complain when running python manage.py runserver.
- In the virtualenv, running django-admin loadtestdata .... results in 'Unknown Command'
Am I missing any steps?
gregmuellegger commented
Seems like the django-admin.py is picking up the wrong settings.py
. What happens if you use manage.py for this, like python manage.py loadtestdata ...
?
gmehta-personal commented
Thanks - That was the case. Tried it last week itself.
- Is there a way the script can automatically populate correct latitude and longitude fields for testing purposes.? Does it require any special kind of package to do this?
- One more question:
There are times when I see the following error:
"CreateInstanceError":Please check value generators or model constraints. At least the following fields are involved: action_ptr - any thoughts on that too?
gregmuellegger commented
Regarding the longitude, latitude fields: It should be easy to integrate that into autofixture. But I haven't used any GeoDjango features yet so I didn't needed it yet.
I'm open to pull requests for this ofcourse. Feel free to give it a shot if you want.