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
I forgot to make a secrets file to store sensitive django settings. We'll need to do make a secrets file and change the secret key before we deploy it anywhere. It's fine for now since we're just running this locally.
The text was updated successfully, but these errors were encountered:
Ideally to deploy it on our server, the secret key would be sourced from the environment. Is there any easy way to do that, with a gitignored secrets file as backup for those that prefer it?
Usually with the settings file there is a base.py settings, a dev.py, and prod.py, and a local.py. They all inherit from base and overwrite settings for the respective environment.
dev.py example:
from .baseimport*#all of the dev.py settings heretry:
from .localimport*# overwrite with local settingsexceptImportError:
pass
I forgot to make a secrets file to store sensitive django settings. We'll need to do make a secrets file and change the secret key before we deploy it anywhere. It's fine for now since we're just running this locally.
The text was updated successfully, but these errors were encountered: