Mercurial > sat_legacy_website
annotate sat_website/wsgi.py @ 160:ff48d544bfdd default tip
gallery: replaced <video> tag by <img> for videos thumbnails
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 23 Sep 2018 16:41:30 +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() |