On Mon, Mar 9, 2009 at 12:35 AM, Serdar T. <[email protected]> wrote: > > So I'm curious - Does loaddata check all directories on the PYTHONPATH > for the named fixture? Or does it only check for fixtures inside the > project directory where the loaddata command was executed?
http://docs.djangoproject.com/en/dev/ref/django-admin/#what-s-a-fixture It doesn't check the entire PYTHONPATH - it checks the following locations: - the fixtures directory for each application in INSTALLED_APPS - Each directory named in the FIXTURE_DIRS setting - opening the fixture name as an absolute path. The last option allows you to specify fixtures as an absolute /path/to/fixture.json; if you just specify fixture.json, it will look in the current working directory. Django will load any and all fixtures it finds in these locations. If you have three apps in INSTALLED_APPS and 2 directories in FIXTURES_DIRS, `manage.py loaddata foo` could potentially load up to 6 fixture files. Russ %-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

