Diego Navarro

1

votes
1

answer
1.4k

views

How to run tasks with sudo from ansible in EC2 instance

I've been playing around with Ansible a little bit and I'm able to launch my playbook against a vagrant virtual machine, but the problems arise when I try to do the same process in an EC2 instance. I just can't sudo any task: # ansible -i inventory/staging dbservers --sudo -a 'apt-get update' ubuntu...
Diego Navarro
5

votes
2

answer
2k

views

How to install GExiv2 on a virtualenv?

I installed this library with: sudo apt-get install libexiv2-dev libgexiv2-2 gir1.2-gexiv2-0.4 And I was able to load the Python module: from gi.repository import GExiv2 The problem comes with virtualenv. I need to use this library inside a virtualenv and I don't know how to install it, since there...
Diego Navarro
2

votes
2

answer
58

views

Is there any way to restrict the use of tags and filters in Django templates?

I know Django has already a good templating system for designers but I wonder if it is possible to limit the usage of certain template tags and filters. We are building a Django plugin for designers to make template developing more open, but we want to hide some logic of django template system and e...
Diego Navarro
7

votes
1

answer
436

views

Why Django's related_model property is returning string instead of Model instance?

I have some strange behaviour, at least for me, that is causing me some bugs in my project. I am using Django 1.9 and a third party django package (django-jet) that makes usage of field.related_model property in Django admin and sometimes it fails because it expects field.related_model returns a mod...
Diego Navarro