1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-26 19:02:24 +00:00
med/med/wsgi.py

24 lines
599 B
Python
Raw Normal View History

2019-08-02 12:57:53 +00:00
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2017-2019 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
"""
2017-06-30 01:25:07 +00:00
WSGI config for med 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.8/howto/deployment/wsgi/
"""
import os
import sys
2019-08-02 12:57:53 +00:00
from os.path import dirname
2019-08-02 12:57:53 +00:00
from django.core.wsgi import get_wsgi_application
sys.path.append(dirname(dirname(__file__)))
2017-06-30 01:25:07 +00:00
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "med.settings")
application = get_wsgi_application()