1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 07:35:22 +00:00

django2 style conversion of setting environment

This commit is contained in:
catborise 2020-06-04 14:32:51 +03:00
parent 028ce0c208
commit c6f0a05f48
2 changed files with 1 additions and 2 deletions

View file

@ -7,7 +7,7 @@ import django
DIR_PATH = os.path.dirname(os.path.abspath(__file__))
ROOT_PATH = os.path.abspath(os.path.join(DIR_PATH, '..', ''))
os.environ["DJANGO_SETTINGS_MODULE"] = "webvirtcloud.settings"
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'webvirtcloud.settings')
CERT = DIR_PATH + '/cert.pem'
if ROOT_PATH not in sys.path:

View file

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
#
# This class provide from VirtManager project, from console.py
# file.