S
S
SilentSokolov2012-10-25 16:19:55
Django
SilentSokolov, 2012-10-25 16:19:55

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

1 answer(s)
G
Gosha Arinich, 2012-10-25
@SilentSokolov

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 question

Ask a Question

731 491 924 answers to any question