File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919# Apparently, with this 'request.scheme' correctly displays 'https' in production
2020SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO' , 'https' )
2121
22- # SECRET_KEY SHOULD BE UNIQUE FOR EACH SETTINGS FILE AND CAN BE GENERATED ON THE
23- # TERMINAL (WITHIN THE DJANGO VIRTUAL ENV) WITH THE COMMAND:
22+ # In production, you can generate the secret key via:
2423# python -c "from django.core.management.utils import get_random_secret_key;print(get_random_secret_key())" # noqa
24+ # (Note: the generated output <O> has unsafe characters removed and can be safely set as SECRET_KEY=<O> in an env file)
2525SECRET_KEY = os .environ ["EGSIM_SECRET_KEY" ]
2626
27- __DATA_ROOT__ = Path (os .environ ['EGSIM_DATA_ROOT' ])
28-
2927# path to the sqlite database (you may place it next to MEDIA_ROOT)
3028DATABASES ['default' ]['NAME' ] = os .environ ['EGSIM_DB_DEFAULT_NAME' ]
3129
Original file line number Diff line number Diff line change 2121 if not line or line .startswith ("#" ):
2222 continue
2323 key , value = line .split ("=" , 1 )
24- print (f'{ key } ={ value } ' )
2524 os .environ .setdefault (key , value )
2625
2726 from django .core .management import execute_from_command_line
You can’t perform that action at this time.
0 commit comments