server/src/wsgi.py
author ymh <ymh.work@gmail.com>
Mon, 08 Jun 2015 00:12:18 +0200
changeset 121 cc05aad7e6b8
parent 117 41a78460bdac
permissions -rw-r--r--
src are not at repo root folder
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
     1
"""
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
     2
WSGI config for ammico project.
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
     3
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
     4
It exposes the WSGI callable as a module-level variable named ``application``.
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
     5
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
     6
For more information on this file, see
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
     7
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
     8
"""
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
     9
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
    10
import os
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
    11
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
    12
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
    13
from django.core.wsgi import get_wsgi_application
1ada9d221ba3 init django server
rougeronj
parents:
diff changeset
    14
application = get_wsgi_application()