gregmuellegger / django-autofixture

Can create auto-generated test data.
BSD 3-Clause "New" or "Revised" License
459 stars 117 forks source link

Unknown Command when running django-admin loadtestdata [options] #10

Closed gmehta-personal closed 11 years ago

gmehta-personal commented 11 years ago
  1. Installed django-autofixture using pip install
  2. Added "autofixture" to INSTALLED_APPS. I know its installed because it does NOT complain when running python manage.py runserver.
  3. In the virtualenv, running django-admin loadtestdata .... results in 'Unknown Command'

Am I missing any steps?

gregmuellegger commented 11 years ago

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 11 years ago

Thanks - That was the case. Tried it last week itself.

  1. 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?
  2. 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 11 years ago

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.