示例#1
0
 def get_handler(self, *args, **options):
     wsgi = super().get_handler(*args, **options)
     return get_aio_application(wsgi=wsgi)
示例#2
0
"""
WSGI config for example 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

from django.core.wsgi import get_wsgi_application
from aiodjango import get_aio_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")

application = get_wsgi_application()

app = get_aio_application(application)
示例#3
0
文件: wsgi.py 项目: mlavin/aiodjango
"""
WSGI config for example 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

from django.core.wsgi import get_wsgi_application
from aiodjango import get_aio_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "example.settings")


application = get_wsgi_application()

app = get_aio_application(application)