'/myapps/fixtures' is treated as absolute path. Try removing leading slash to make it relative. Either you can write full absolute path to the directory.
thanks, Eugene On Thursday, August 14, 2014 9:05:30 PM UTC+4, Daniel Grace wrote: > > I created a fixtures file called testdata.xml in a fixtures folder, but I > can't load the fixtures file into the database. > > I placed an __init__.py file in the fixtures folder (not sure about this > step, is it needed?) > > I put the fixtures directory in settings.py: > FIXTURE_DIRS = ( > '/myapp/fixtures/', > ) > > I tried two ways to load the fixture, but neither worked: > >python manage.py syncdb > Creating tables ... > Installing custom SQL ... > Installing indexes ... > Installed 0 object(s) from 0 fixture(s) > >python manage.py loaddata "myapp/fixtures/testdata.xml" > C:\myenv\lib\site-packages\django\core\management\commands\loaddata.py:216: > User > Warning: No fixture named 'myapp/fixtures/testdata' found. > warnings.warn("No fixture named '%s' found." % fixture_name) > Installed 0 object(s) from 0 fixture(s) > > Any ideas? > Thanks > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/22a1ef6b-131e-43b1-9261-a0f1cdce27c6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.