-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
38 lines (32 loc) · 1.09 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import os
from beret_utils import get_config
from beret_utils.config import bool_value, EnvValue
from beret_utils import PathData
base_dir = PathData.main()
assets_dir = base_dir("assets")
DEFAULT_CONFIG = (
('PROJECT_NAME', 'just_reserved'),
('PROJECT_ENV', 'local'),
('POSTGRES_ENGINE', 'django.db.backends.postgresql'),
('POSTGRES_DB', 'postgres'),
('POSTGRES_USER', 'postgres'),
('POSTGRES_PASSWORD', 'postgres'),
('POSTGRES_HOST', 'db'),
('POSTGRES_PORT', ''),
('SECRET_KEY', "django-insecure-aj#exo2bw$h%ps^hr4o+ch)e_u2ao1j19rd6z0q)l1o#e!9rn5"),
('DJANGO_EMAIL_HOST_USER', 'just_reserved@marysia.app'),
('DJANGO_EMAIL_HOST_PASSWORD', 'key'),
('DEEP_AI_API_KEY', 'api-key'),
("DJANGO_ALLOWED_HOSTS", "ala.hipisi.org.pl eskape.marysia.app localhost 94.23.247.130 0.0.0.0 127.0.0.1"),
('OPENAI_KEY', 'api-key'),
('OPENAI_ORG', 'marysia'),
)
ENV_FILES = (
'.local.env',
'.env',
)
Config = get_config(DEFAULT_CONFIG, ENV_FILES)
config = Config()
if __name__ == '__main__':
for key, value in config.items():
print(f"{key}={value}")