>
> Hello Graham,
>
 
    Thanks for the quick response. I just tried running a normal django app 
through apache and mod-wsgi. I am getting different errors this time.
    This might be because of version mismatch as you suggested earlier 
before. Any idea on how to resolve this mismatch? Iam totally a newbie when 
it comes to apache and         python. There is a problem with python path 
too i guess. These are the errors which apache produced.

[Thu Mar 17 16:34:08.736426 2016] [mpm_event:notice] [pid 27388:tid 
139725702416256] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 
configured -- resuming normal operations
[Thu Mar 17 16:34:08.736447 2016] [core:notice] [pid 27388:tid 
139725702416256] AH00094: Command line: '/usr/sbin/apache2'
[Thu Mar 17 16:34:20.284059 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892] mod_wsgi (pid=27554): Target WSGI script 
'/var/www/myproject/myproject/wsgi.py' cannot be loaded as Python module.
[Thu Mar 17 16:34:20.284116 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892] mod_wsgi (pid=27554): Exception occurred 
processing WSGI script '/var/www/myproject/myproject/wsgi.py'.
[Thu Mar 17 16:34:20.284144 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892] Traceback (most recent call last):
[Thu Mar 17 16:34:20.284165 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]   File "/var/www/myproject/myproject/wsgi.py", 
line 16, in <module>
[Thu Mar 17 16:34:20.284233 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]     application = get_wsgi_application()
[Thu Mar 17 16:34:20.284247 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]   File 
"/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in 
get_wsgi_application
[Thu Mar 17 16:34:20.284289 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]     django.setup()
[Thu Mar 17 16:34:20.284304 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]   File 
"/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 17, in 
setup
[Thu Mar 17 16:34:20.284342 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]     configure_logging(settings.LOGGING_CONFIG, 
settings.LOGGING)
[Thu Mar 17 16:34:20.284357 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]   File 
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, 
in __getattr__
[Thu Mar 17 16:34:20.284427 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]     self._setup(name)
[Thu Mar 17 16:34:20.284439 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]   File 
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, 
in _setup
[Thu Mar 17 16:34:20.284457 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]     self._wrapped = Settings(settings_module)
[Thu Mar 17 16:34:20.284466 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]   File 
"/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, 
in __init__
[Thu Mar 17 16:34:20.284480 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]     mod = 
importlib.import_module(self.SETTINGS_MODULE)
[Thu Mar 17 16:34:20.284490 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]   File 
"/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Thu Mar 17 16:34:20.284555 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892]     __import__(name)
[Thu Mar 17 16:34:20.284581 2016] [:error] [pid 27554:tid 139725510551296] 
[remote 192.168.2.1:54892] ImportError: No module named myproject.settings 

>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to