Commit 2fd91661 authored by rexxnor's avatar rexxnor

debug is now false, added creation of database

parent db8c55c9
......@@ -66,6 +66,11 @@
virtualenv: /var/www/prepaidmatevenv/
command: collectstatic
app_path: /var/www/html/ppm/prepaidmatewebsite/
- name: Django - Create database by migrations
django_manage:
virtualenv: /var/www/prepaidmatevenv/
command: migrate
app_path: /var/www/html/ppm/prepaidmatewebsite/
- name: Restarting apache and enabling it
systemd:
name: apache2
......
......@@ -19,7 +19,7 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# See https://docs.djangoproject.com/en/1.11/howto/deployment/checklist/
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = False
ALLOWED_HOSTS = ['{{ ansible_eth0.ipv4.address }}']
......@@ -143,4 +143,3 @@ X_FRAME_OPTIONS = "DENY"
# Secret key generated by gen_safe_secret.sh
with open(os.path.join(BASE_DIR, 'prepaidmatewebsite/secret.txt')) as f:
SECRET_KEY = f.read().strip()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment