django settings multiple environments -


i'm trying break apart settings.py multiple environments don't have giant spaghetti code of conditionals easy mix , hard work with. far been reading: https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/ http://blog.doismellburning.co.uk/2012/03/10/django-settings-environments/

i moved settings.py rtv2/settings/base.py  created rtv2/settings/__init__.py created rtv2/settings/develop.py , copied relevant config out of base.py 

runserver works fine, when try launch apache wsgi, nothing but:

importerror: not import settings 'rtv2.settings.develop' (is on sys.path?): no module named settings.develop

it doesn't matter put django_settings_module settings settings.develop rtv.settings.develop... nothing works.

how apache+wsgi working multiple settings environments?

no idea, totally frustrated. help.

thanks


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -