diff --git a/README.md b/README.md index 1b2fcb2..503616c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ## WebVirtCloud -###### Python3 & Django 2.11 +###### Python3 & Django 2.2.12 ## Features * QEMU/KVM Hypervisor Management @@ -32,7 +32,7 @@ WebVirtCloud is a virtualization web interface for admins and users. It can dele ### Generate secret key You should generate SECRET_KEY after cloning repo. Then put it into webvirtcloud/settings.py. -```python +```python3 import random, string haystack = string.ascii_letters + string.digits + string.punctuation print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)])) @@ -55,7 +55,7 @@ cd /srv/webvirtcloud virtualenv -p python3 venv source venv/bin/activate pip install -r conf/requirements.txt -python manage.py migrate +python3 manage.py migrate sudo chown -R www-data:www-data /srv/webvirtcloud sudo rm /etc/nginx/sites-enabled/default ``` diff --git a/conf/runit/novncd.sh b/conf/runit/novncd.sh index 14b775b..05b6007 100755 --- a/conf/runit/novncd.sh +++ b/conf/runit/novncd.sh @@ -6,7 +6,7 @@ RUNAS=`which setuser` USER=www-data DJANGO_PROJECT=/srv/webvirtcloud -PYTHON=$DJANGO_PROJECT/venv/bin/python +PYTHON=$DJANGO_PROJECT/venv/bin/python3 NOVNCD=$DJANGO_PROJECT/console/novncd # make novncd debug, verbose diff --git a/console/novncd b/console/novncd index 15ac905..4ed17be 100755 --- a/console/novncd +++ b/console/novncd @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import sys diff --git a/manage.py b/manage.py index f29da8f..2aaa5a5 100755 --- a/manage.py +++ b/manage.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import sys diff --git a/webvirtcloud/settings-dev.py b/webvirtcloud/settings-dev.py index ae963f3..dec7522 100644 --- a/webvirtcloud/settings-dev.py +++ b/webvirtcloud/settings-dev.py @@ -1,7 +1,7 @@ """ Django dev settings for webvirtcloud project. -HowTo: python manage.py runserver 0:8000 --settings=webvirtcloud.settings-dev +HowTo: python3 manage.py runserver 0:8000 --settings=webvirtcloud.settings-dev """