python - Django on mod_wsgi syntaxError -


i installed django 1.11.5 virtualenv on mod_wsgi.

python version 2.7.13.

i error in /var/log/httpd/error_log:

[wed sep 13 16:41:00 2017] [error] [client 5.125.70.26] mod_wsgi (pid=9606): target wsgi script '/var/www/html/memit/memit/wsgi.py' cannot loaded python module. [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26] mod_wsgi (pid=9606): exception occurred processing wsgi script '/var/www/html/memit/memit/wsgi.py'. [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26] traceback (most recent call last): [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]   file "/var/www/html/memit/memit/wsgi.py", line 13, in <module> [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]     django.core.wsgi import get_wsgi_application [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]   file "/var/www/html/memit/env/lib/python2.7/site-packages/django/__init__.py", line 3, in <module> [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]     django.utils.version import get_version [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]   file "/var/www/html/memit/env/lib/python2.7/site-packages/django/utils/version.py", line 7, in <module> [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]     django.utils.lru_cache import lru_cache [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]   file "/var/www/html/memit/env/lib/python2.7/site-packages/django/utils/lru_cache.py", line 28 [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]      fasttypes = {int, str, frozenset, type(none)}, [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]                      ^ [wed sep 13 16:41:00 2017] [error] [client 5.125.70.26]  syntaxerror: invalid syntax 

and apache virtual host is:

<virtualhost *:80>     servername memit.ir     serveralias www.memit.ir     documentroot /var/www/html/memit      wsgidaemonprocess memit python-path=/var/www/html/memit:/var/www/html/memit/env/lib/python2.7/site-packages wsgiprocessgroup memit wsgiscriptalias / /var/www/html/memit/memit/wsgi.py      <directory /var/www/html/memit>       allow       options -multiviews       # uncomment if you're on apache >= 2.4:       #require granted     </directory> </virtualhost> 

what wrong?

how fix problem?


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -