I try to deploy my Django project to apache. But I getting an error 500response. And in logs I getting information that Django is missing. I'm using `virtualenv`to run this project. It's the first time when I try to deploy Django project. And from my experience, I know that I probably missing some simple thing. I was looking for solutions on this site but they are for previous versions of Django and python. They don't work for me. 

**This is my Apache test.conf**

```html
WSGIScriptAlias / /home/mariusz/Dokumenty/Projekty/zalien/zalien/wsgi.py 
WSGIDaemonProcess localhost python-path=/home/mariusz/Dokumenty/Projekty/zalien:/home/mariusz/Dokumenty/Projekt/envy/lib/python3.5/site-packages

<Directory /home/mariusz/Dokumenty/Projekty/zalien/zalien>
<Files wsgi.py>
Require all granted
</Files>
</Directory>

```

**This is my wsgi.py**

```html
import os
import sys
import site
from django.core.wsgi import get_wsgi_application
application = django.core.handlers.wsgi.WSGIHandler()

# Add the site-packages of the chosen virtualenv to work with
site.addsitedir('/home/mariusz/Dokumenty/Projekty/envy/local/lib/python3.5/site-packages')

# Add the app's directory to the PYTHONPATH
sys.path.append('/home/mariusz/Dokumenty/Projekty/zalien')
sys.path.append('/home/mariusz/Dokumenty/Projekty/zalien/zalien')

os.environ['DJANGO_SETTINGS_MODULE'] = 'zalien.settings'

# Activate your virtual env
activate_env=os.path.expanduser("/home/mariusz/Dokumenty/Projekty/envy/bin/activate_this.py")
exec(activate_env, dict(__file__=activate_env))

```

**Error Log**

```html
[Mon May 16 09:44:28.368084 2016] [wsgi:error] [pid 7418:tid 139640747427584] mod_wsgi (pid=7418): Call to 'site.addsitedir()' failed for '(null)', stopping.
[Mon May 16 09:44:28.368132 2016] [wsgi:error] [pid 7418:tid 139640747427584] mod_wsgi (pid=7418): Call to 'site.addsitedir()' failed for '/home/mariusz/Dokumenty/Projekty/zalien/'.
[Mon May 16 09:44:28.369458 2016] [wsgi:error] [pid 7418:tid 139640747427584] [client 127.0.0.1:37494] mod_wsgi (pid=7418): Target WSGI script '/home/mariusz/Dokumenty/Projekty/zalien/zalien/wsgi.py' cannot be loaded as Python module.
[Mon May 16 09:44:28.369493 2016] [wsgi:error] [pid 7418:tid 139640747427584] [client 127.0.0.1:37494] mod_wsgi (pid=7418): Exception occurred processing WSGI script '/home/mariusz/Dokumenty/Projekty/zalien/zalien/wsgi.py'.
[Mon May 16 09:44:28.369724 2016] [wsgi:error] [pid 7418:tid 139640747427584] [client 127.0.0.1:37494] Traceback (most recent call last):
[Mon May 16 09:44:28.369752 2016] [wsgi:error] [pid 7418:tid 139640747427584] [client 127.0.0.1:37494]   File "/home/mariusz/Dokumenty/Projekty/zalien/zalien/wsgi.py", line 23, in <module>
[Mon May 16 09:44:28.369758 2016] [wsgi:error] [pid 7418:tid 139640747427584] [client 127.0.0.1:37494]     from django.core.wsgi import get_wsgi_application
[Mon May 16 09:44:28.369781 2016] [wsgi:error] [pid 7418:tid 139640747427584] [client 127.0.0.1:37494] ImportError: No module named 'django'

```

**Permissions** 

```html
-rw-rw-r-- 1 mariusz www-data   295 May  9 14:50 app.json
-rw-rw-r-- 1 mariusz www-data 51200 May 13 09:53 db.sqlite3
drwxrwxr-x 4 mariusz www-data  4096 May 13 10:06 games
-rwxrwxr-x 1 mariusz www-data   249 May  9 14:50 manage.py
drwxrwxr-x 4 mariusz www-data  4096 May 13 10:06 portal
-rw-rw-r-- 1 mariusz www-data    39 May  9 14:50 Procfile
-rw-rw-r-- 1 mariusz www-data    45 May  9 14:50 Procfile.windows
-rw-rw-r-- 1 mariusz www-data  1368 May  9 14:50 README.md
-rw-rw-r-- 1 mariusz www-data   298 May  9 14:50 requirements.txt
-rw-rw-r-- 1 mariusz www-data    13 May  9 14:50 runtime.txt
drwxrwxr-x 5 mariusz www-data  4096 May  9 14:50 static
drwxrwxr-x 4 mariusz www-data  4096 May  9 14:50 templates
drwxrwxr-x 4 mariusz www-data  4096 May 13 10:06 userprofile
drwxrwxr-x 3 mariusz www-data  4096 May 16 11:50 zalien

```
['https://Stackoverflow.com/questions/37250573', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5004814/']
If anyone is still experiencing problems with sudo, I was able t solve it by checking the shell access of the account in WHM. I received the same error because the account had Jailed Shell restrictions. I set it to normal shell and the error was gone.
Issue:
sudo: effective uid is not 0, is sudo installed setuid root?

Noticed:
---s--x--x. 1 dev root 123832 Aug 13 2015 /usr/bin/sudo

user and group should be root and the sudo file should have setuid

Should be 
---s--x--x. 1 root root 123832 Aug 13 2015 /usr/bin/sudo

and also double