On Thu, Jul 4, 2013 at 3:29 AM, Roger Barnes <ro...@mindsocket.com.au> wrote:
> It looks like you may be missing a space after the word "source".
>
> My fabfile has these helpers, given an env.virtualenv and env.app_dir
> setting...

Another way to do it is to provide a shell script that sets up the
appropriate environment and then executes "python manage.py". Eg
(manage.sh):

#!/bin/sh
cd /path/to/project
source /path/to/activate
python manage.py "$@"

and then

sudo('/path/to/manage.sh syncdb', user='www')


Cheers

Tom

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to