We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e158aa3 commit 3ce604eCopy full SHA for 3ce604e
llmstack/settings.py
@@ -1,12 +1,8 @@
1
import os
2
from pathlib import Path
3
-from dotenv import load_dotenv
4
5
from django.utils.log import DEFAULT_LOGGING
6
7
-load_dotenv(dotenv_path='.env.dev')
8
-
9
10
# Build paths inside the project like this: BASE_DIR / 'subdir'.
11
BASE_DIR = Path(__file__).resolve().parent.parent
12
@@ -24,9 +20,11 @@
24
20
'127.0.0.1,localhost',
25
21
).split(',')
26
22
23
+LLMSTACK_PORT = os.getenv('LLMSTACK_PORT', 3000)
+
27
CSRF_TRUSTED_ORIGINS = os.getenv(
28
'CSRF_TRUSTED_ORIGINS',
29
- 'http://127.0.0.1:3000,http://localhost:3000',
+ f'http://127.0.0.1:{LLMSTACK_PORT},http://localhost:{LLMSTACK_PORT}',
30
31
32
STATIC_ROOT = os.path.join(BASE_DIR, 'static')
0 commit comments