sys.path.append('/var/www/cloudloon/horizon')
os.environ['DJANGO_SETTINGS_MODULE'] = 'openstack_dashboard.settings'
from django.contrib.auth.models import User
Using Django models in external python script