You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ectc_tm_server/settings.py has some information that is either sensitive or will have to change on a per-user setup. We want settings.py to have some good defaults, but also to be able to accommodate both developers and users. This issue should:
Create a script that generates the following:
SECRET_KEY (initialized to some randomized value)
DEBUG (initialized to True)
DATABASES (not sure what to initialized this to, but we can ask users to edit it)
ALLOWED_HOSTS (initialized to an empty list, users can edit this too)
Edit settings.py to import this information from the output file. The code would look something like this:
# add the path that settings.py is in to the libary import pathcurrent_dir=os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, current_dir)
fromcustom_settingsimportSECRET_KEY, DEBUG, ...
# remove this path from library import pathsys.path.pop(0)
The text was updated successfully, but these errors were encountered:
ectc_tm_server/settings.py has some information that is either sensitive or will have to change on a per-user setup. We want settings.py to have some good defaults, but also to be able to accommodate both developers and users. This issue should:
Create a script that generates the following:
Edit settings.py to import this information from the output file. The code would look something like this:
The text was updated successfully, but these errors were encountered: