summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfschildt <florian.schildt@protonmail.com>2025-10-17 18:28:00 +0200
committerfschildt <florian.schildt@protonmail.com>2025-10-17 18:37:35 +0200
commitacce3095ee2818d879c3c5a179f992d686e43200 (patch)
tree3a65ae0b00eb4f2129ae33ce8e5adff9c77efb82
parent574f6446a1088c5bc558f15883858b3aa7a1f880 (diff)
rename .env -> .env.dev
-rw-r--r--.env.dev8
-rw-r--r--fsweb/settings.py2
2 files changed, 9 insertions, 1 deletions
diff --git a/.env.dev b/.env.dev
new file mode 100644
index 0000000..400a6c3
--- /dev/null
+++ b/.env.dev
@@ -0,0 +1,8 @@
+# SECURITY WARNING: don't run with debug turned on in production!
+DEBUG=True
+
+# SECURITY WARNING: keep the secret key used in production secret!
+SECRET_KEY='django-insecure-!@6fpyap5a=3d@lcv=7hm04534j839ie!*(bz=etm4v_fh&y*b'
+
+ALLOWED_HOSTS=localhost,127.0.0.1
+
diff --git a/fsweb/settings.py b/fsweb/settings.py
index 5f02be0..abc823e 100644
--- a/fsweb/settings.py
+++ b/fsweb/settings.py
@@ -25,7 +25,7 @@ env = os.getenv('DJANGO_ENV')
if env == 'production':
load_dotenv('/var/www/fsweb/config/.env')
else:
- load_dotenv('.env')
+ load_dotenv('.env.dev')
DEBUG = os.getenv('DEBUG') == 'True'
SECRET_KEY = os.getenv('SECRET_KEY')