Debian Codegraph @

hypothesis-python/tests/django/toys/wsgi.py

raw
1 # This file is part of Hypothesis, which may be found at
2 # https://github.com/HypothesisWorks/hypothesis/
3 #
4 # Copyright the Hypothesis Authors.
5 # Individual contributors are listed in AUTHORS.rst and the git log.
6 #
7 # This Source Code Form is subject to the terms of the Mozilla Public License,
8 # v. 2.0. If a copy of the MPL was not distributed with this file, You can
9 # obtain one at https://mozilla.org/MPL/2.0/.
10
11 """WSGI config for toys project.
12
13 It exposes the WSGI callable as a module-level variable named ``application``.
14
15 For more information on this file, see
16 https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
17 """
18
19 import os
20
21 from django.core.wsgi import get_wsgi_application
22
23 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "toys.settings")
24
25 application = get_wsgi_application()