Mercurial > sat_legacy_website
annotate sat_website/wsgi.py @ 150:b101828faa0e
split views.py in sub-modules
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 17 Oct 2017 22:16:20 +0200 |
parents | b1c16cd53b62 |
children |
rev | line source |
---|---|
149
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
1 """ |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
2 WSGI config for sat_website project. |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
3 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
4 It exposes the WSGI callable as a module-level variable named ``application``. |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
5 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
6 For more information on this file, see |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
7 https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/ |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
8 """ |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
9 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
10 import os |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
11 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
12 from django.core.wsgi import get_wsgi_application |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
13 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
14 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
15 |
b1c16cd53b62
update django to version 1.11, refactor project structure, better PEP-8 compliance
souliane <souliane@mailoo.org>
parents:
diff
changeset
|
16 application = get_wsgi_application() |