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:
parent
f9b837841c
commit
d3de4bbc30
5 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
"""
|
||||
|
||||
|
|
Loading…
Reference in a new issue