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

Merge pull request #160 from Bandic007/master

Fixing django version requirement and instances page not loading
This commit is contained in:
Anatoliy Guskov 2018-07-06 19:18:14 +03:00 committed by GitHub
commit f4de792eff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 15 additions and 5 deletions

View file

@ -231,6 +231,7 @@ datasource:
### How To Update ### How To Update
```bash ```bash
git pull git pull
pip install Django==1.11.14
python manage.py migrate python manage.py migrate
sudo service supervisor restart sudo service supervisor restart
``` ```

View file

@ -1,5 +1,6 @@
Django==1.8.11 Django==1.11.14
websockify==0.8.0 websockify==0.8.0
gunicorn==19.3.0 gunicorn==19.9.0
libvirt-python==3.10 libvirt-python==4.4.0
libxml2-python3==2.9.5 libxml2-python3==2.9.5
lxml==4.2.3

View file

@ -85,7 +85,7 @@ def instances(request):
comp_info["mem_size"], comp_info["mem_size"],
comp_info["mem_perc"]][vm]['userinstances'] = get_userinstances_info(check_uuid) comp_info["mem_perc"]][vm]['userinstances'] = get_userinstances_info(check_uuid)
except Instance.DoesNotExist: 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() check_uuid.save()
if not request.user.is_superuser: if not request.user.is_superuser:

View file

@ -83,7 +83,15 @@ TEMPLATES = [
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [ os.path.join(BASE_DIR, 'templates'), ], 'DIRS': [ os.path.join(BASE_DIR, 'templates'), ],
'APP_DIRS': True, '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 ## WebVirtCloud settings