Bah - I completely forgot that my gen.py script had this :

#!/usr/bin/python

On Monday, 23 April 2012 07:26:55 UTC-5, Stodge wrote:
>
> 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/-/FcjZ7RfYnR8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to