move the django project one level up

This commit is contained in:
Andreas Zweili 2020-03-10 20:14:53 +01:00
parent 0a8a8d42f8
commit 54890d9358
28 changed files with 11 additions and 2 deletions

5
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"python.pythonPath": "venv/bin/python3",
"python.linting.pylintEnabled": true,
"python.linting.enabled": true
}

View File

@ -1 +1,3 @@
-r base.txt
gunicorn

2
run.sh Normal file
View File

@ -0,0 +1,2 @@
nohub gunicorn sensors.wsgi:application --bind 0.0.0.0:80 --workers 3
nohub ./collector.sh

View File

@ -20,7 +20,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
DEBUG = True
# Application definition

View File

@ -1,7 +1,7 @@
from .base import *
ALLOWED_HOSTS = [
'sensors.2li.ch',
'sensors.2li.local',
'10.7.89.122',
]