Answer the question
In order to leave comments, you need to log in
Separate settings on Heroku and in the repository
In general, I keep a djnago project on github, and I want to run a test version on Heroku, but the fact is that you can upload it to heroku only through git, in fact, it is also proposed to commit the settings too.
I don't want to keep the settings in a common repository, can anyone know how to keep separate settings for heroku without creating a separate repository?
Answer the question
In order to leave comments, you need to log in
Env vars .
Use them like regular env vars in python -
import os
CONFIG_PARAM_A = os.environ['CONFIG_PARAM_A']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question