diff --git a/README.md b/README.md index ae44568..62fbc5f 100644 --- a/README.md +++ b/README.md @@ -231,6 +231,7 @@ datasource: ### How To Update ```bash git pull +pip install Django==1.11.14 python manage.py migrate sudo service supervisor restart ``` diff --git a/conf/requirements.txt b/conf/requirements.txt index acfaaed..d395575 100644 --- a/conf/requirements.txt +++ b/conf/requirements.txt @@ -1,5 +1,6 @@ -Django==1.8.11 +Django==1.11.14 websockify==0.8.0 -gunicorn==19.3.0 -libvirt-python==3.10 +gunicorn==19.9.0 +libvirt-python==4.4.0 libxml2-python3==2.9.5 +lxml==4.2.3 diff --git a/instances/views.py b/instances/views.py index 78fafa6..1c6fe3c 100644 --- a/instances/views.py +++ b/instances/views.py @@ -85,7 +85,7 @@ def instances(request): comp_info["mem_size"], comp_info["mem_perc"]][vm]['userinstances'] = get_userinstances_info(check_uuid) except Instance.DoesNotExist: - check_uuid = Instance(compute_id=comp.id, name=vm, uuid=info['uuid']) + check_uuid = Instance(compute_id=comp["id"], name=vm, uuid=info['uuid']) check_uuid.save() if not request.user.is_superuser: diff --git a/webvirtcloud/settings.py.template b/webvirtcloud/settings.py.template index b7ba1ea..ffee758 100644 --- a/webvirtcloud/settings.py.template +++ b/webvirtcloud/settings.py.template @@ -83,7 +83,15 @@ TEMPLATES = [ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ os.path.join(BASE_DIR, 'templates'), ], 'APP_DIRS': True, - } + 'OPTIONS': { + 'context_processors': [ + 'django.template.context_processors.debug', + 'django.template.context_processors.request', + 'django.contrib.auth.context_processors.auth', + 'django.contrib.messages.context_processors.messages', + ], + }, + }, ] ## WebVirtCloud settings