mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
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:
parent
88d5f2bd4d
commit
815debb318
@ -4,6 +4,8 @@ Manage Django sites
|
||||
|
||||
import os
|
||||
|
||||
def __virtual__():
|
||||
return 'django'
|
||||
|
||||
def _get_django_admin(bin_env):
|
||||
'''
|
Loading…
Reference in New Issue
Block a user