From f580f152a1ebf2f5abe97431cc95f9ee55a5808f Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 27 Oct 2019 05:26:05 +0100 Subject: [PATCH 1/2] change settings for deploy --- bloomhunt/settings.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bloomhunt/settings.py b/bloomhunt/settings.py index 4b5603c..94fc07f 100644 --- a/bloomhunt/settings.py +++ b/bloomhunt/settings.py @@ -25,7 +25,7 @@ SECRET_KEY = '8$19!k4+%bg^r0v#04+ksm2ny(4*dp!v8dxnbbz)sj275(_(^&' # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ['*'] # Application definition @@ -76,10 +76,10 @@ WSGI_APPLICATION = 'bloomhunt.wsgi.application' # https://docs.djangoproject.com/en/1.11/ref/settings/#databases DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), - } + #'default': { + # 'ENGINE': 'django.db.backends.sqlite3', + # 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + #} } @@ -124,3 +124,5 @@ STATIC_URL = '/static/' STATICFILES_DIRS = [ os.path.join(BASE_DIR, "static"), ] + +STATIC_ROOT = "/var/www/virtual/areion/html/bloomhunt/static/" From 5aa8f41612f18cd7bc8385063ad60432b80f8ff8 Mon Sep 17 00:00:00 2001 From: Gitea Date: Sun, 27 Oct 2019 05:28:41 +0100 Subject: [PATCH 2/2] remove unused imports --- mobile/views.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mobile/views.py b/mobile/views.py index 3739ce5..a73d97b 100644 --- a/mobile/views.py +++ b/mobile/views.py @@ -5,12 +5,6 @@ from datetime import datetime import json import os -import pandas as pd -import matplotlib.pyplot as plt -import numpy as np -import seaborn as sns -import re as re - def index(request):