From 1cc67371c5e846655b4b17e881818c99a8e9d6e6 Mon Sep 17 00:00:00 2001 From: Amir Date: Wed, 28 Aug 2024 17:40:17 +0200 Subject: [PATCH] fixing db path --- .gitignore | 1 + saburly/settings/production.py | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..49ef2557 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +db.sqlite3 diff --git a/saburly/settings/production.py b/saburly/settings/production.py index 89de7a5c..a61ffc34 100644 --- a/saburly/settings/production.py +++ b/saburly/settings/production.py @@ -14,7 +14,7 @@ SECRET_KEY = os.getenv('SECRET_KEY') DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), + 'NAME': '/app/db.sqlite3', } } @@ -25,7 +25,6 @@ MEDIA_URL = '/media/' MEDIA_ROOT = os.path.join(BASE_DIR, 'media') -SECURE_SSL_REDIRECT = True SESSION_COOKIE_SECURE = True CSRF_COOKIE_SECURE = True SECURE_HSTS_SECONDS = 31536000