I'm try to deploy virtual host my django project into apache2 via mod\_wsgi WSGIDaemon method, i'm using ubuntu 16.04 and i'm getting following error.

**From apache2 error log:**

> 
> [Tue Dec 11 11:55:31.748517 2018] [wsgi:error] [pid 14231:tid 139821891782400] [remote ::1:44748] mod\_wsgi (pid=14231): Target WSGI script '/var/www/html/rasa\_django/rasa\_django/wsgi.py' cannot be loaded as Python module.
>  [Tue Dec 11 11:55:31.748570 2018] [wsgi:error] [pid 14231:tid 139821891782400] [remote ::1:44748] mod\_wsgi (pid=14231): Exception occurred processing WSGI script '/var/www/html/rasa\_django/rasa\_django/wsgi.py'.
>  [Tue Dec 11 11:55:31.748639 2018] [wsgi:error] [pid 14231:tid 139821891782400] [remote ::1:44748] Traceback (most recent call last):
>  [Tue Dec 11 11:55:31.748657 2018] [wsgi:error] [pid 14231:tid 139821891782400] [remote ::1:44748] File "/var/www/html/rasa\_django/rasa\_django/wsgi.py", line 12, in 
>  [Tue Dec 11 11:55:31.748662 2018] [wsgi:error] [pid 14231:tid 139821891782400] [remote ::1:44748] from django.core.wsgi import get\_wsgi\_application
>  [Tue Dec 11 11:55:31.748677 2018] [wsgi:error] [pid 14231:tid 139821891782400] [remote ::1:44748] ImportError: No module named 'django'
>  [Tue Dec 11 11:55:31.787336 2018] [wsgi:error] [pid 14231:tid 139821849777920] [remote ::1:38604] mod\_wsgi (pid=14231): Target WSGI script '/var/www/html/rasa\_django/rasa\_django/wsgi.py' cannot be loaded as Python module.
>  [Tue Dec 11 11:55:31.787379 2018] [wsgi:error] [pid 14231:tid 139821849777920] [remote ::1:38604] mod\_wsgi (pid=14231): Exception occurred processing WSGI script '/var/www/html/rasa\_django/rasa\_django/wsgi.py'.
>  [Tue Dec 11 11:55:31.787447 2018] [wsgi:error] [pid 14231:tid 139821849777920] [remote ::1:38604] Traceback (most recent call last):
>  [Tue Dec 11 11:55:31.787465 2018] [wsgi:error] [pid 14231:tid 139821849777920] [remote ::1:38604] File "/var/www/html/rasa\_django/rasa\_django/wsgi.py", line 12, in 
>  [Tue Dec 11 11:55:31.787470 2018] [wsgi:error] [pid 14231:tid 139821849777920] [remote ::1:38604] from django.core.wsgi import get\_wsgi\_application
>  [Tue Dec 11 11:55:31.787484 2018] [wsgi:error] [pid 14231:tid 139821849777920] [remote ::1:38604] ImportError: No module named 'django'
> 
> 
> 

**In my host file 000-default.conf:**

 ServerName www.rasa\_django.com
 DocumentRoot /var/www/html/rasa\_django
 ErrorLog /var/www/logs/error.log
 CustomLog /var/www/logs/custom.log combined

```
Alias /static /var/www/html/rasa_django/static

<Directory /var/www/html/rasa_django/static>
    Require all granted
</Directory>

<Directory /var/www/html/rasa_django/rasa_django>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

WSGIDaemonProcess rasa_django.com python-path=/var/www/html/rasa_django python-home=/home/aarbor_01/env_site1/lib/python3.6/site-packages
WSGIProcessGroup rasa_django.com
WSGIScriptAlias / /var/www/html/rasa_django/rasa_django/wsgi.py

```

**Here my wsgi.py file:**

import os

from django.core.wsgi import get\_wsgi\_application

os.environ.setdefault('DJANGO\_SETTINGS\_MODULE', 'rasa\_django.settings')

application = get\_wsgi\_application()