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 -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/0vZ9QQkEq3MJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.