"""
WSGI config for bitply project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""

import os

import utils

from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise

# Check if the PRODUCTION_ENV exists, if not set it to False
# and loads the normal settings
PRODUCTION_ENV = utils.get_env("PRODUCTION_ENV", False)
if PRODUCTION_ENV:
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bitply.prod_settings")
else:
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bitply.settings")

application = get_wsgi_application()

if PRODUCTION_ENV:
    application = DjangoWhiteNoise(application)

a0ced6d2599befc46169276dfbd8cb57f7a6b7ca
<mask token>

<mask token>
if PRODUCTION_ENV:
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bitply.prod_settings')
else:
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bitply.settings')
<mask token>
if PRODUCTION_ENV:
    application = DjangoWhiteNoise(application)

<mask token>
PRODUCTION_ENV = utils.get_env('PRODUCTION_ENV', False)
if PRODUCTION_ENV:
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bitply.prod_settings')
else:
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bitply.settings')
application = get_wsgi_application()
if PRODUCTION_ENV:
    application = DjangoWhiteNoise(application)

<mask token>
import os
import utils
from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise
PRODUCTION_ENV = utils.get_env('PRODUCTION_ENV', False)
if PRODUCTION_ENV:
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bitply.prod_settings')
else:
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'bitply.settings')
application = get_wsgi_application()
if PRODUCTION_ENV:
    application = DjangoWhiteNoise(application)

"""
WSGI config for bitply project.

It exposes the WSGI callable as a module-level variable named ``application``.

For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""

import os

import utils

from django.core.wsgi import get_wsgi_application
from whitenoise.django import DjangoWhiteNoise

# Check if the PRODUCTION_ENV exists, if not set it to False
# and loads the normal settings
PRODUCTION_ENV = utils.get_env("PRODUCTION_ENV", False)
if PRODUCTION_ENV:
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bitply.prod_settings")
else:
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bitply.settings")

application = get_wsgi_application()

if PRODUCTION_ENV:
    application = DjangoWhiteNoise(application)
