I'm trying to port an existing app to Django 1.4 so I'm using virtualenv. ./manage.py syncdb works but my old script that calls syncdb and creates dummy data doesn't. My code:
os.environ["DJANGO_SETTINGS_MODULE"]="settings"
call_command('syncdb', interactive=False)
is giving:
Error: No module named staticfiles
I assume it's using Django installed in /usr/lib64/python instead of the virtualenv? Any ideas how to fix this? Thanks