diff options
author | Rob Austein <sra@hactrn.net> | 2015-10-08 03:08:37 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2015-10-08 03:08:37 +0000 |
commit | e011d9cf24895b1465ce2adbcd94981360b5f7af (patch) | |
tree | efe79ccf4ca4bcb966ac048ed0d1c121a3f0d38f /ca/rpki.wsgi | |
parent | 9aa4f71e89de9e9189571c68ba1589024f77d71a (diff) |
Upgrade to new way of doing WSGI. Silence ten zillion deprecation
warnings: Django 1.8 has a really obscure way of saying "Please don't
import your models into your apps' __init__.py files, thanks."
svn path=/branches/tk705/; revision=6101
Diffstat (limited to 'ca/rpki.wsgi')
-rw-r--r-- | ca/rpki.wsgi | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ca/rpki.wsgi b/ca/rpki.wsgi index 8c3481ef..487650f7 100644 --- a/ca/rpki.wsgi +++ b/ca/rpki.wsgi @@ -39,7 +39,7 @@ os.environ['DISABLE_SETPROCTITLE'] = 'yes' if not os.environ.get('PYTHON_EGG_CACHE') and rpki.autoconf.WSGI_PYTHON_EGG_CACHE_DIR: os.environ['PYTHON_EGG_CACHE'] = rpki.autoconf.WSGI_PYTHON_EGG_CACHE_DIR -import django.core.handlers.wsgi -application = django.core.handlers.wsgi.WSGIHandler() +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application() # vim:ft=python |