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