from galaxy.wsgi import application  # noqa

import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'galaxy.settings.custom'

from galaxy.wsgi import application  # noqa

Set DJANGO_SETTINGS_MODULE to custom for prod config