N
N
nazandr2016-04-01 21:45:26
Django
nazandr, 2016-04-01 21:45:26

Help with ImportError: No module named security?

import os, sys
sys.path.append('/home/andrey/Shop/')
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()

[Fri Apr 01 18:35:35.107935 2016] [wsgi:error] [pid 8779:tid 139975844677376] [client 90.154.72.10:15241] mod_wsgi (pid=8779): Exception occurred processing WSGI script '/home/andrey/Shop/django-shop.wsgi'., referer: http://django-shop.tk/page/2/
[Fri Apr 01 18:35:35.108032 2016] [wsgi:error] [pid 8779:tid 139975844677376] [client 90.154.72.10:15241] Traceback (most recent call last):, referer: http://django-shop.tk/page/2/
[Fri Apr 01 18:35:35.108064 2016] [wsgi:error] [pid 8779:tid 139975844677376] [client 90.154.72.10:15241]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 168, in __call__, referer: http://django-shop.tk/page/2/
[Fri Apr 01 18:35:35.108125 2016] [wsgi:error] [pid 8779:tid 139975844677376] [client 90.154.72.10:15241]   File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 44, in load_middleware, referer: http://django-shop.tk/page/2/
[Fri Apr 01 18:35:35.108159 2016] [wsgi:error] [pid 8779:tid 139975844677376] [client 90.154.72.10:15241]   File "/usr/lib/python2.7/dist-packages/django/utils/module_loading.py", line 26, in import_string, referer: http://django-shop.tk/page/2/
[Fri Apr 01 18:35:35.108189 2016] [wsgi:error] [pid 8779:tid 139975844677376] [client 90.154.72.10:15241]   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module, referer: http://django-shop.tk/page/2/
[Fri Apr 01 18:35:35.108243 2016] [wsgi:error] [pid 8779:tid 139975844677376] [client 90.154.72.10:15241]     __import__(name), referer: http://django-shop.tk/page/2/
[Fri Apr 01 18:35:35.108272 2016] [wsgi:error] [pid 8779:tid 139975844677376] [client 90.154.72.10:15241] ImportError: No module named security, referer: http://django-shop.tk/page/2/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cyber_bober, 2016-04-01
@Cyber_bober

Did it appear during deployment or during development?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question