Beispiel #1
0
def wsgi(path):
    _setup(path=path)
    from django.core.wsgi import get_wsgi_application
    from django.conf import settings
    from dj_static import Cling, MediaCling
    app = get_wsgi_application()
    if not settings.STATIC_URL_IS_ON_OTHER_DOMAIN:
        app = Cling(app)
    if not settings.MEDIA_URL_IS_ON_OTHER_DOMAIN:
        app = MediaCling(app)
    return app
Beispiel #2
0
"""
WSGI config for blog 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/2.1/howto/deployment/wsgi/
"""

import os
from dj_static import Cling, MediaCling
from django.core.wsgi import get_wsgi_application

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

application = Cling(MediaCling(get_wsgi_application()))
Beispiel #3
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.")
Beispiel #4
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())))
Beispiel #5
0
"""
WSGI config for seed_stage_based_messaging 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

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

application = get_wsgi_application()
application = Cling(MediaCling(application))
Beispiel #6
0
"""
WSGI config for config 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.10/howto/deployment/wsgi/
"""

import os

from django.core.wsgi import get_wsgi_application
from dj_static import MediaCling
from whitenoise.django import DjangoWhiteNoise

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")

application = get_wsgi_application()
application = MediaCling(application)
application = DjangoWhiteNoise(application)