"""
WSGI config for word4u 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/3.1/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application
from whitenoise import WhiteNoise
from django.conf import settings


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'word4u.settings')

application = get_wsgi_application()
application = WhiteNoise(application, root='{}/static/'.format(settings.BASE_DIR), prefix='static/')
application.add_files('{}/media/'.format(settings.BASE_DIR), prefix='media/')
