wsgi.py 394 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
"""
WSGI config for go 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.6/howto/deployment/wsgi/
"""

import os
Zac Wood's avatar
Zac Wood committed
11
import dotenv
12 13

from django.core.wsgi import get_wsgi_application
Zac Wood's avatar
Zac Wood committed
14 15 16 17

if not os.getenv('DOCKER'):
    dotenv.read_dotenv('../.env')

18
application = get_wsgi_application()