The addition of the django module breaks using a django app from other modules

We use our Django app's models from within one of our custom salt
modules. Upon a recent upgrade we found that our custom module broke
because our __virtual__ function started returning False.

Since there was a django.py file in the modules it meant that our
attempt to import django.core.management resulted in an ImportError.
This commit is contained in:
Evan Borgstrom 2012-09-18 15:41:28 -04:00
parent 88d5f2bd4d
commit 815debb318

View File

@ -4,6 +4,8 @@ Manage Django sites
import os
def __virtual__():
return 'django'
def _get_django_admin(bin_env):
'''