[Sun Jan 06 05:09:39.138437 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] Invalid HTTP_HOST header: '192.43.239.8'. You may need to add u'192.43.239.8' to ALLOWED_HOSTS. [Sun Jan 06 05:09:39.151302 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] mod_wsgi (pid=19878): Exception occurred processing WSGI script '/opt/mancini/bin/wsgi.py'. [Sun Jan 06 05:09:39.151345 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] Traceback (most recent call last): [Sun Jan 06 05:09:39.151368 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] File "/opt/mancini/ve/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 157, in __call__ [Sun Jan 06 05:09:39.151408 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] response = self.get_response(request) [Sun Jan 06 05:09:39.151424 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] File "/opt/mancini/ve/lib/python2.7/site-packages/django/core/handlers/base.py", line 124, in get_response [Sun Jan 06 05:09:39.151453 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] response = self._middleware_chain(request) [Sun Jan 06 05:09:39.151467 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] File "/opt/mancini/ve/lib/python2.7/site-packages/django/core/handlers/exception.py", line 43, in inner [Sun Jan 06 05:09:39.151494 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] response = response_for_exception(request, exc) [Sun Jan 06 05:09:39.151508 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] File "/opt/mancini/ve/lib/python2.7/site-packages/django/core/handlers/exception.py", line 85, in response_for_exception [Sun Jan 06 05:09:39.151534 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] response = get_exception_response(request, get_resolver(get_urlconf()), 400, exc) [Sun Jan 06 05:09:39.151548 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] File "/opt/mancini/ve/lib/python2.7/site-packages/django/core/handlers/exception.py", line 119, in get_exception_response [Sun Jan 06 05:09:39.151574 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] response = handle_uncaught_exception(request, resolver, sys.exc_info()) [Sun Jan 06 05:09:39.151588 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] File "/opt/mancini/ve/lib/python2.7/site-packages/django/core/handlers/exception.py", line 143, in handle_uncaught_exception [Sun Jan 06 05:09:39.151629 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] return callback(request, **param_dict) [Sun Jan 06 05:09:39.151649 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] File "/opt/mancini/ve/lib/python2.7/site-packages/django/utils/decorators.py", line 141, in _wrapped_view [Sun Jan 06 05:09:39.151677 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] result = middleware.process_request(request) [Sun Jan 06 05:09:39.151691 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] File "/opt/mancini/ve/lib/python2.7/site-packages/django/middleware/csrf.py", line 205, in process_request [Sun Jan 06 05:09:39.151717 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] csrf_token = self._get_token(request) [Sun Jan 06 05:09:39.151731 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] File "/opt/mancini/ve/lib/python2.7/site-packages/django/middleware/csrf.py", line 173, in _get_token [Sun Jan 06 05:09:39.151756 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] 'in MIDDLEWARE%s.' % ('_CLASSES' if settings.MIDDLEWARE is None else '') [Sun Jan 06 05:09:39.151779 2019] [wsgi:error] [pid 19878] [remote 80.82.64.127:40884] ImproperlyConfigured: CSRF_USE_SESSIONS is enabled, but request.session is not set. SessionMiddleware must appear before CsrfViewMiddleware in MIDDLEWARE.