示例#1
0
"""
WSGI config for strangeFlix 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 static_ranges import Ranges
from dj_static import Cling, MediaCling

from django.core.wsgi import get_wsgi_application

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

application = get_wsgi_application()
application = Ranges(Cling(MediaCling(get_wsgi_application())))
示例#2
0
"""
WSGI config for YAPO 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 dj_static import Cling, MediaCling
from static_ranges import Ranges

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

application = get_wsgi_application()
application = Ranges(Cling(MediaCling(application)))

print("\nServer ready.")
示例#3
0
"""
WSGI config for ChanceAtLife 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/dev/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application
from static_ranges import Ranges

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

application = Ranges(get_wsgi_application())