Hi list:
Being a noob with fabric as I am I've found a rather confusing behaviour.
Hope some of you can enlighten me .
If I run :

...
    upload_template("conf/django-wsgi-template.txt",
                    'django.wsgi',
                    context,
                    use_jinja=True)

It generates the template without a fuss. But if I format the filepath
string it rises TemplateNotFound

BASE_DIR = os.path.dirname(__file__)
...
    upload_template('%s/conf/django-wsgi-template.txt' %(BASE_DIR,),
                    'django.wsgi',
                    context,
                    use_jinja=True)

Although the file is present and the path is correct.
Why is fabric rejecting my file? Is this the right behavior and I'm just
doing things wrong?

Thanks in advancee




-- 
Matías Iturburu
http://www.linkedin.com/in/miturburu
_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to