Opened 17 years ago
Last modified 17 years ago
#6643 closed
Fixtures with absolute path names get loaded multiple times — at Version 1
Reported by: | Russell Keith-Magee | Owned by: | nobody |
---|---|---|---|
Component: | Core (Serialization) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Report from msoulier on django-users:
I'm loading a fixture with 2500 objects in it into postgres 7.4.
For some reason, loaddata is looking in a lot of additional places
than the file I'm handing it.
[root@vmware-espresso teleworker]# PYTHONPATH=.. python manage.py loaddata /root/clients.json Loading '/root/clients.json' fixtures... Installing json fixture '/root/clients' from '/usr/lib/python2.3/site- packages/django/contrib/auth/fixtures'. Installing json fixture '/root/clients' from '/usr/lib/python2.3/site- packages/django/contrib/contenttypes/fixtures'. Installing json fixture '/root/clients' from '/usr/lib/python2.3/site- packages/django/contrib/sessions/fixtures'. Installing json fixture '/root/clients' from '/etc/e-smith/web/django/ teleworker/dashboard/fixtures'. Installing json fixture '/root/clients' from '/etc/e-smith/web/django/ teleworker/icps/fixtures'. Installing json fixture '/root/clients' from '/etc/e-smith/web/django/ teleworker/clients/fixtures'. Installing json fixture '/root/clients' from '/etc/e-smith/web/django/ teleworker/advanced/fixtures'. Installing json fixture '/root/clients' from '/etc/e-smith/web/django/ teleworker/proxies/fixtures'. Installing json fixture '/root/clients' from '/etc/e-smith/web/django/ teleworker/metrics/fixtures'. Installing json fixture '/root/clients' from '/etc/e-smith/web/django/ teleworker/js/fixtures'. Installing json fixture '/root/clients' from absolute path. Installed 27500 object(s) from 11 fixture(s)
Change History (1)
comment:1 by , 17 years ago
Description: | modified (diff) |
---|---|
Summary: | Fixtures with absolute path names get logged multiple times → Fixtures with absolute path names get loaded multiple times |
Note:
See TracTickets
for help on using tickets.
I suspect the issue here stems from the way that os.path.join operates on absolute path names. As a result of this, the fixture specified as an absolute path is 'found' at every possible location.