1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +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
###### 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
```