I am using Amazon Web Services (AWS) Elastic Beanstalk for hosting my Django/Python web application. I have two environments created in Beanstalk - production
and acceptance
(staging).
My web app source code is in version control in git. Deployment config files are located in the .ebextensions
directory at the root of git repository, as described here.
I have 2 separate Django config files for my application: conf/acceptance.py
and conf/production.py
.
How do I set DJANGO_SETTINGS_CONFIG
environment variable separately for each environment?
I have tried editing it in beanstalk web ui, but it is resets when I redeploy. What can I do?