# Path: django_productline/startup.py
# def get_wsgi_application():
#     """
#     returns the wsgi application for the selected product
# 
#     this function is called by featuredjango.wsgi to get the wsgi
#     application object
# 
#     if you need to refine the wsgi application object e.g. to add
#     wsgi middleware please refine django.core.wsgi.get_wsgi_application directly.
#     """
#     # make sure the product is selected before importing and constructing wsgi app
#     select_product()
#     # return (possibly refined) wsgi application
#     from django.core.wsgi import get_wsgi_application
#     return get_wsgi_application()


from django_productline.startup import get_wsgi_application
from __future__ import unicode_literals

"""
WSGI config for featuredjango project.

This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` setting.

Usually you will have the standard Django WSGI application here, but it also
might make sense to replace the whole Django WSGI application with a custom one
that later delegates to the Django one. For example, you could introduce WSGI
middleware here, or combine a Django application with an application of another
framework.
For products built with django-productline this can be done by refining
django.core.wsgi.get_wsgi_application directly.
"""


# Path: django_productline/startup.py
# def get_wsgi_application():
#     """
#     returns the wsgi application for the selected product
# 
#     this function is called by featuredjango.wsgi to get the wsgi
#     application object
# 
#     if you need to refine the wsgi application object e.g. to add
#     wsgi middleware please refine django.core.wsgi.get_wsgi_application directly.
#     """
#     # make sure the product is selected before importing and constructing wsgi app
#     select_product()
#     # return (possibly refined) wsgi application
#     from django.core.wsgi import get_wsgi_application
#     return get_wsgi_application()


# Path: django_productline/wsgi.py
from django_productline.startup import get_wsgi_application

from __future__ import unicode_literals

"""
WSGI config for featuredjango project.

This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` setting.

Usually you will have the standard Django WSGI application here, but it also
might make sense to replace the whole Django WSGI application with a custom one
that later delegates to the Django one. For example, you could introduce WSGI
middleware here, or combine a Django application with an application of another
framework.
For products built with django-productline this can be done by refining
django.core.wsgi.get_wsgi_application directly.
"""


application = get_wsgi_application()