Put sensitive settings.py information into external file
Put things like the the secret key into an external text or config file that will never be pushed.
-
create said file -
create entry for file in gitignore -
write secret key int othe file -
write DATABASES information like the passwort into that file