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

change statements python -> python3

This commit is contained in:
catborise 2020-04-17 14:02:18 +03:00
parent f9b837841c
commit d3de4bbc30
5 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
## WebVirtCloud ## WebVirtCloud
###### Python3 & Django 2.11 ###### Python3 & Django 2.2.12
## Features ## Features
* QEMU/KVM Hypervisor Management * QEMU/KVM Hypervisor Management
@ -32,7 +32,7 @@ WebVirtCloud is a virtualization web interface for admins and users. It can dele
### Generate secret key ### Generate secret key
You should generate SECRET_KEY after cloning repo. Then put it into webvirtcloud/settings.py. You should generate SECRET_KEY after cloning repo. Then put it into webvirtcloud/settings.py.
```python ```python3
import random, string import random, string
haystack = string.ascii_letters + string.digits + string.punctuation haystack = string.ascii_letters + string.digits + string.punctuation
print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)])) print(''.join([random.SystemRandom().choice(haystack) for _ in range(50)]))
@ -55,7 +55,7 @@ cd /srv/webvirtcloud
virtualenv -p python3 venv virtualenv -p python3 venv
source venv/bin/activate source venv/bin/activate
pip install -r conf/requirements.txt pip install -r conf/requirements.txt
python manage.py migrate python3 manage.py migrate
sudo chown -R www-data:www-data /srv/webvirtcloud sudo chown -R www-data:www-data /srv/webvirtcloud
sudo rm /etc/nginx/sites-enabled/default sudo rm /etc/nginx/sites-enabled/default
``` ```

View file

@ -6,7 +6,7 @@ RUNAS=`which setuser`
USER=www-data USER=www-data
DJANGO_PROJECT=/srv/webvirtcloud DJANGO_PROJECT=/srv/webvirtcloud
PYTHON=$DJANGO_PROJECT/venv/bin/python PYTHON=$DJANGO_PROJECT/venv/bin/python3
NOVNCD=$DJANGO_PROJECT/console/novncd NOVNCD=$DJANGO_PROJECT/console/novncd
# make novncd debug, verbose # make novncd debug, verbose

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import os import os
import sys import sys

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
import os import os
import sys import sys

View file

@ -1,7 +1,7 @@
""" """
Django dev settings for webvirtcloud project. 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
""" """