Forums

Unhandled Exception

Hi

I tried to run my web application in java following the tutorials given in the pythonanywhere site. I get an unhandled exception error while loading my page. This is my error log. https://www.pythonanywhere.com/user/tony161293/files/var/log/tony161293.pythonanywhere.com.error.log

I run the server at http://tony161293.pythonanywhere.com/

Hello,

Could you post the error log on here so I could take a look

Thanks Robert

Hi Robert

My error log seems like this. I'm not really an expert. I don't understand what's happening here.

Thank you.

2014-03-01 07:32:53,707 :/usr/lib/python2.7/threading.py:1158: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
2014-03-01 07:32:53,709 :  return _active[_get_ident()]
2014-03-01 07:32:53,709 :Traceback (most recent call last):
2014-03-01 07:32:53,709 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:32:53,709 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:32:53,710 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:32:53,710 :    self.error(msg, *args, **kwargs)
2014-03-01 07:32:53,710 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:32:53,710 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:32:53,711 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:32:53,711 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:32:53,711 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:32:53,711 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:32:53,711 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:32:53,712 :    self.threadName = threading.current_thread().name
2014-03-01 07:32:53,712 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:32:53,712 :    return _active[_get_ident()]
2014-03-01 07:32:53,712 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:32:53,712 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:32:53,713 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:32:53,713 :    self.load_middleware()
2014-03-01 07:32:53,713 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:32:53,713 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:32:53,713 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:32:53,714 :    self._setup()
2014-03-01 07:32:53,714 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:32:53,714 :    self._wrapped = Settings(settings_module)
2014-03-01 07:32:53,714 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:32:53,714 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:32:53,714 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings
2014-03-01 07:32:59,040 :Traceback (most recent call last):
2014-03-01 07:32:59,041 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:32:59,041 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:32:59,041 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:32:59,041 :    self.error(msg, *args, **kwargs)
2014-03-01 07:32:59,042 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:32:59,042 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:32:59,042 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:32:59,042 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:32:59,043 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:32:59,043 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:32:59,043 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:32:59,043 :    self.threadName = threading.current_thread().name
2014-03-01 07:32:59,043 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:32:59,044 :    return _active[_get_ident()]
2014-03-01 07:32:59,044 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:32:59,044 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:32:59,044 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:32:59,044 :    self.load_middleware()
2014-03-01 07:32:59,045 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:32:59,045 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:32:59,045 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:32:59,045 :    self._setup()
2014-03-01 07:32:59,045 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:32:59,045 :    self._wrapped = Settings(settings_module)
2014-03-01 07:32:59,046 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:32:59,046 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:32:59,046 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings
2014-03-01 07:32:59,840 :Traceback (most recent call last):
2014-03-01 07:32:59,840 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:32:59,840 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:32:59,840 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:32:59,840 :    self.error(msg, *args, **kwargs)
2014-03-01 07:32:59,840 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:32:59,841 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:32:59,841 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:32:59,841 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:32:59,841 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:32:59,842 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:32:59,842 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:32:59,842 :    self.threadName = threading.current_thread().name
2014-03-01 07:32:59,842 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:32:59,842 :    return _active[_get_ident()]
2014-03-01 07:32:59,843 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:32:59,843 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:32:59,843 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:32:59,843 :    self.load_middleware()
2014-03-01 07:32:59,843 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:32:59,843 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:32:59,843 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:32:59,844 :    self._setup()
2014-03-01 07:32:59,844 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:32:59,844 :    self._wrapped = Settings(settings_module)
2014-03-01 07:32:59,844 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:32:59,844 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:32:59,844 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings
2014-03-01 07:33:00,528 :Traceback (most recent call last):
2014-03-01 07:33:00,528 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:33:00,528 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:33:00,528 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:33:00,529 :    self.error(msg, *args, **kwargs)
2014-03-01 07:33:00,529 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:33:00,529 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:33:00,529 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:33:00,530 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:33:00,530 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:33:00,531 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:33:00,531 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:33:00,531 :    self.threadName = threading.current_thread().name
2014-03-01 07:33:00,531 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:33:00,532 :    return _active[_get_ident()]
2014-03-01 07:33:00,532 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:33:00,532 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:33:00,532 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:33:00,532 :    self.load_middleware()
2014-03-01 07:33:00,532 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:33:00,533 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:33:00,533 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:33:00,533 :    self._setup()
2014-03-01 07:33:00,533 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:33:00,533 :    self._wrapped = Settings(settings_module)
2014-03-01 07:33:00,533 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:33:00,534 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:33:00,534 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings
2014-03-01 07:33:01,264 :Traceback (most recent call last):
2014-03-01 07:33:01,264 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:33:01,264 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:33:01,264 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:33:01,265 :    self.error(msg, *args, **kwargs)
2014-03-01 07:33:01,265 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:33:01,265 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:33:01,265 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:33:01,266 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:33:01,266 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:33:01,266 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:33:01,266 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:33:01,266 :    self.threadName = threading.current_thread().name
2014-03-01 07:33:01,266 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:33:01,267 :    return _active[_get_ident()]
2014-03-01 07:33:01,267 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:33:01,267 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:33:01,267 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:33:01,267 :    self.load_middleware()
2014-03-01 07:33:01,268 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:33:01,268 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:33:01,268 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:33:01,268 :    self._setup()
2014-03-01 07:33:01,268 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:33:01,268 :    self._wrapped = Settings(settings_module)
2014-03-01 07:33:01,268 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:33:01,269 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:33:01,269 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings
2014-03-01 07:33:22,726 :Traceback (most recent call last):
2014-03-01 07:33:22,727 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:33:22,727 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:33:22,727 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:33:22,727 :    self.error(msg, *args, **kwargs)
2014-03-01 07:33:22,727 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:33:22,728 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:33:22,728 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:33:22,728 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:33:22,728 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:33:22,729 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:33:22,729 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:33:22,729 :    self.threadName = threading.current_thread().name
2014-03-01 07:33:22,729 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:33:22,729 :    return _active[_get_ident()]
2014-03-01 07:33:22,729 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:33:22,730 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:33:22,730 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:33:22,730 :    self.load_middleware()
2014-03-01 07:33:22,730 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:33:22,730 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:33:22,730 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:33:22,731 :    self._setup()
2014-03-01 07:33:22,731 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:33:22,731 :    self._wrapped = Settings(settings_module)
2014-03-01 07:33:22,731 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:33:22,731 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:33:22,731 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings
2014-03-01 07:35:38,639 :Traceback (most recent call last):
2014-03-01 07:35:38,640 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:35:38,640 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:35:38,640 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:35:38,640 :    self.error(msg, *args, **kwargs)
2014-03-01 07:35:38,641 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:35:38,641 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:35:38,641 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:35:38,641 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:35:38,641 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:35:38,642 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:35:38,642 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:35:38,642 :    self.threadName = threading.current_thread().name
2014-03-01 07:35:38,642 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:35:38,643 :    return _active[_get_ident()]
2014-03-01 07:35:38,643 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:35:38,643 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:35:38,643 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:35:38,643 :    self.load_middleware()
2014-03-01 07:35:38,643 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:35:38,643 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:35:38,644 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:35:38,644 :    self._setup()
2014-03-01 07:35:38,644 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:35:38,644 :    self._wrapped = Settings(settings_module)
2014-03-01 07:35:38,644 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:35:38,644 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:35:38,644 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings
2014-03-01 07:35:44,464 :Traceback (most recent call last):
2014-03-01 07:35:44,464 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:35:44,464 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:35:44,464 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:35:44,464 :    self.error(msg, *args, **kwargs)
2014-03-01 07:35:44,464 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:35:44,465 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:35:44,465 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:35:44,465 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:35:44,465 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:35:44,466 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:35:44,466 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:35:44,466 :    self.threadName = threading.current_thread().name
2014-03-01 07:35:44,466 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:35:44,467 :    return _active[_get_ident()]
2014-03-01 07:35:44,467 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:35:44,467 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:35:44,467 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:35:44,467 :    self.load_middleware()
2014-03-01 07:35:44,467 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:35:44,467 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:35:44,468 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:35:44,468 :    self._setup()
2014-03-01 07:35:44,468 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:35:44,468 :    self._wrapped = Settings(settings_module)
2014-03-01 07:35:44,468 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:35:44,468 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:35:44,468 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings
2014-03-01 07:35:49,783 :Traceback (most recent call last):
2014-03-01 07:35:49,784 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:35:49,784 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:35:49,784 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:35:49,784 :    self.error(msg, *args, **kwargs)
2014-03-01 07:35:49,784 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:35:49,785 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:35:49,785 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:35:49,785 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:35:49,786 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:35:49,786 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:35:49,786 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:35:49,786 :    self.threadName = threading.current_thread().name
2014-03-01 07:35:49,786 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:35:49,787 :    return _active[_get_ident()]
2014-03-01 07:35:49,787 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:35:49,787 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:35:49,787 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:35:49,787 :    self.load_middleware()
2014-03-01 07:35:49,787 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:35:49,788 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:35:49,788 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:35:49,788 :    self._setup()
2014-03-01 07:35:49,788 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:35:49,788 :    self._wrapped = Settings(settings_module)
2014-03-01 07:35:49,788 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:35:49,789 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:35:49,789 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings
2014-03-01 07:39:23,456 :/usr/lib/python2.7/threading.py:1158: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
2014-03-01 07:39:23,457 :  return _active[_get_ident()]
2014-03-01 07:39:23,458 :Traceback (most recent call last):
2014-03-01 07:39:23,458 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:39:23,458 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:39:23,458 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:39:23,458 :    self.error(msg, *args, **kwargs)
2014-03-01 07:39:23,458 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:39:23,459 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:39:23,459 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:39:23,459 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:39:23,459 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:39:23,460 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:39:23,460 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:39:23,460 :    self.threadName = threading.current_thread().name
2014-03-01 07:39:23,460 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:39:23,461 :    return _active[_get_ident()]
2014-03-01 07:39:23,461 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:39:23,461 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:39:23,461 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:39:23,461 :    self.load_middleware()
2014-03-01 07:39:23,461 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:39:23,461 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:39:23,461 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:39:23,462 :    self._setup()
2014-03-01 07:39:23,462 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:39:23,462 :    self._wrapped = Settings(settings_module)
2014-03-01 07:39:23,462 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:39:23,462 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:39:23,462 :ImportError: Could not import settings '/home/tony161293/projects/canteen.settings' (Is it on sys.path?): Import by filename is not supported.
2014-03-01 07:39:31,207 :Traceback (most recent call last):
2014-03-01 07:39:31,207 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:39:31,208 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:39:31,208 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:39:31,208 :    self.error(msg, *args, **kwargs)
2014-03-01 07:39:31,208 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:39:31,208 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:39:31,209 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:39:31,209 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:39:31,209 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:39:31,209 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:39:31,210 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:39:31,210 :    self.threadName = threading.current_thread().name
2014-03-01 07:39:31,210 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:39:31,210 :    return _active[_get_ident()]
2014-03-01 07:39:31,210 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:39:31,210 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:39:31,211 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:39:31,211 :    self.load_middleware()
2014-03-01 07:39:31,211 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:39:31,211 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:39:31,211 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:39:31,211 :    self._setup()
2014-03-01 07:39:31,212 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:39:31,212 :    self._wrapped = Settings(settings_module)
2014-03-01 07:39:31,212 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:39:31,212 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:39:31,212 :ImportError: Could not import settings '/home/tony161293/projects/canteen.settings' (Is it on sys.path?): Import by filename is not supported.
2014-03-01 07:39:33,646 :Traceback (most recent call last):
2014-03-01 07:39:33,646 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:39:33,646 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:39:33,646 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:39:33,646 :    self.error(msg, *args, **kwargs)
2014-03-01 07:39:33,647 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:39:33,647 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:39:33,647 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:39:33,647 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:39:33,647 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:39:33,648 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:39:33,648 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:39:33,648 :    self.threadName = threading.current_thread().name
2014-03-01 07:39:33,648 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:39:33,649 :    return _active[_get_ident()]
2014-03-01 07:39:33,649 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:39:33,649 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:39:33,649 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:39:33,649 :    self.load_middleware()
2014-03-01 07:39:33,649 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:39:33,649 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:39:33,649 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:39:33,650 :    self._setup()
2014-03-01 07:39:33,650 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:39:33,650 :    self._wrapped = Settings(settings_module)
2014-03-01 07:39:33,650 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:39:33,650 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:39:33,650 :ImportError: Could not import settings '/home/tony161293/projects/canteen.settings' (Is it on sys.path?): Import by filename is not supported.
2014-03-01 07:39:34,686 :Traceback (most recent call last):
2014-03-01 07:39:34,686 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:39:34,686 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:39:34,686 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:39:34,687 :    self.error(msg, *args, **kwargs)
2014-03-01 07:39:34,687 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:39:34,687 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:39:34,687 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:39:34,688 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:39:34,688 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:39:34,688 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:39:34,688 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:39:34,688 :    self.threadName = threading.current_thread().name
2014-03-01 07:39:34,688 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:39:34,689 :    return _active[_get_ident()]
2014-03-01 07:39:34,689 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:39:34,689 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:39:34,689 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:39:34,689 :    self.load_middleware()
2014-03-01 07:39:34,689 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:39:34,690 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:39:34,690 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:39:34,690 :    self._setup()
2014-03-01 07:39:34,690 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:39:34,690 :    self._wrapped = Settings(settings_module)
2014-03-01 07:39:34,690 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:39:34,691 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:39:34,691 :ImportError: Could not import settings '/home/tony161293/projects/canteen.settings' (Is it on sys.path?): Import by filename is not supported.
2014-03-01 07:39:35,094 :Traceback (most recent call last):
2014-03-01 07:39:35,094 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 07:39:35,094 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 07:39:35,094 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 07:39:35,095 :    self.error(msg, *args, **kwargs)
2014-03-01 07:39:35,095 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 07:39:35,095 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 07:39:35,095 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 07:39:35,096 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 07:39:35,096 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 07:39:35,096 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 07:39:35,096 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 07:39:35,096 :    self.threadName = threading.current_thread().name
2014-03-01 07:39:35,096 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 07:39:35,097 :    return _active[_get_ident()]
2014-03-01 07:39:35,097 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 07:39:35,097 :    app_iterator = self.app(environ, start_response)
2014-03-01 07:39:35,097 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 07:39:35,097 :    self.load_middleware()
2014-03-01 07:39:35,097 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 07:39:35,098 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 07:39:35,098 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 07:39:35,098 :    self._setup()
2014-03-01 07:39:35,098 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 07:39:35,098 :    self._wrapped = Settings(settings_module)
2014-03-01 07:39:35,098 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 07:39:35,099 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 07:39:35,099 :ImportError: Could not import settings '/home/tony161293/projects/canteen.settings' (Is it on sys.path?): Import by filename is not supported.
2014-03-01 08:47:17,272 :Traceback (most recent call last):
2014-03-01 08:47:17,274 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 08:47:17,274 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 08:47:17,274 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 08:47:17,275 :    self.error(msg, *args, **kwargs)
2014-03-01 08:47:17,275 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 08:47:17,275 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 08:47:17,275 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 08:47:17,276 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 08:47:17,276 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 08:47:17,276 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 08:47:17,276 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 08:47:17,277 :    self.threadName = threading.current_thread().name
2014-03-01 08:47:17,277 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 08:47:17,277 :    return _active[_get_ident()]
2014-03-01 08:47:17,277 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 08:47:17,277 :    app_iterator = self.app(environ, start_response)
2014-03-01 08:47:17,278 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 08:47:17,278 :    self.load_middleware()
2014-03-01 08:47:17,278 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 08:47:17,278 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 08:47:17,278 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 08:47:17,278 :    self._setup()
2014-03-01 08:47:17,279 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 08:47:17,279 :    self._wrapped = Settings(settings_module)
2014-03-01 08:47:17,279 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 08:47:17,279 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 08:47:17,279 :ImportError: Could not import settings '/home/tony161293/projects/canteen.settings' (Is it on sys.path?): Import by filename is not supported.
2014-03-01 08:47:19,477 :Traceback (most recent call last):
2014-03-01 08:47:19,478 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 08:47:19,478 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 08:47:19,478 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 08:47:19,478 :    self.error(msg, *args, **kwargs)
2014-03-01 08:47:19,478 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 08:47:19,479 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 08:47:19,479 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 08:47:19,479 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 08:47:19,479 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 08:47:19,480 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 08:47:19,480 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 08:47:19,480 :    self.threadName = threading.current_thread().name
2014-03-01 08:47:19,480 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 08:47:19,480 :    return _active[_get_ident()]
2014-03-01 08:47:19,481 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 08:47:19,481 :    app_iterator = self.app(environ, start_response)
2014-03-01 08:47:19,481 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 08:47:19,481 :    self.load_middleware()
2014-03-01 08:47:19,481 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 08:47:19,481 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 08:47:19,481 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 08:47:19,482 :    self._setup()
2014-03-01 08:47:19,482 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 08:47:19,482 :    self._wrapped = Settings(settings_module)
2014-03-01 08:47:19,482 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 08:47:19,482 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 08:47:19,482 :ImportError: Could not import settings '/home/tony161293/projects/canteen.settings' (Is it on sys.path?): Import by filename is not supported.
2014-03-01 14:57:18,663 :Traceback (most recent call last):
2014-03-01 14:57:18,685 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 14:57:18,686 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 14:57:18,686 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 14:57:18,688 :    self.error(msg, *args, **kwargs)
2014-03-01 14:57:18,688 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 14:57:18,688 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 14:57:18,689 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 14:57:18,689 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 14:57:18,689 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 14:57:18,689 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 14:57:18,690 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 14:57:18,690 :    self.threadName = threading.current_thread().name
2014-03-01 14:57:18,690 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 14:57:18,692 :    return _active[_get_ident()]
2014-03-01 14:57:18,692 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 14:57:18,692 :    app_iterator = self.app(environ, start_response)
2014-03-01 14:57:18,692 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 14:57:18,706 :    self.load_middleware()
2014-03-01 14:57:18,706 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 14:57:18,707 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 14:57:18,707 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 14:57:18,723 :    self._setup()
2014-03-01 14:57:18,723 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 14:57:18,732 :    self._wrapped = Settings(settings_module)
2014-03-01 14:57:18,733 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 14:57:18,733 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 14:57:18,733 :ImportError: Could not import settings '/home/tony161293/projects/canteen.settings' (Is it on sys.path?): Import by filename is not supported.
2014-03-01 14:57:24,020 :Traceback (most recent call last):
2014-03-01 14:57:24,020 :  File "/bin/user_wsgi_wrapper.py", line 67, in __call__
2014-03-01 14:57:24,020 :    self.error_log_file.logger.exception("Error running WSGI application")
2014-03-01 14:57:24,020 :  File "/usr/lib/python2.7/logging/__init__.py", line 1183, in exception
2014-03-01 14:57:24,021 :    self.error(msg, *args, **kwargs)
2014-03-01 14:57:24,021 :  File "/usr/lib/python2.7/logging/__init__.py", line 1176, in error
2014-03-01 14:57:24,021 :    self._log(ERROR, msg, args, **kwargs)
2014-03-01 14:57:24,021 :  File "/usr/lib/python2.7/logging/__init__.py", line 1268, in _log
2014-03-01 14:57:24,022 :    record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra)
2014-03-01 14:57:24,022 :  File "/usr/lib/python2.7/logging/__init__.py", line 1242, in makeRecord
2014-03-01 14:57:24,022 :    rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func)
2014-03-01 14:57:24,022 :  File "/usr/lib/python2.7/logging/__init__.py", line 284, in __init__
2014-03-01 14:57:24,023 :    self.threadName = threading.current_thread().name
2014-03-01 14:57:24,023 :  File "/usr/lib/python2.7/threading.py", line 1158, in currentThread
2014-03-01 14:57:24,023 :    return _active[_get_ident()]
2014-03-01 14:57:24,023 :  File "/bin/user_wsgi_wrapper.py", line 59, in __call__
2014-03-01 14:57:24,023 :    app_iterator = self.app(environ, start_response)
2014-03-01 14:57:24,023 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in __call__
2014-03-01 14:57:24,024 :    self.load_middleware()
2014-03-01 14:57:24,024 :  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware
2014-03-01 14:57:24,024 :    for middleware_path in settings.MIDDLEWARE_CLASSES:
2014-03-01 14:57:24,024 :  File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in __getattr__
2014-03-01 14:57:24,024 :    self._setup()
2014-03-01 14:57:24,024 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
2014-03-01 14:57:24,025 :    self._wrapped = Settings(settings_module)
2014-03-01 14:57:24,025 :  File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
2014-03-01 14:57:24,025 :    raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e))
2014-03-01 14:57:24,025 :ImportError: Could not import settings '/home/tony161293/projects/canteen.settings' (Is it on sys.path?): Import by filename is not supported.

[edited by admin: formatting]

OK, I think you're trying to run a Django website, is that correct?

It looks like there's an import issue somewhere in there.

Also, when I go to your site, it appears to work - or at least it shows the default page.

Have you made sure you 'reloaded' the web app.

Hi tony161293 -- it looks like you've changed things since you were getting that error, so I can't be sure, but what I think was happening was that you had specified a full filename for the Django settings file in the WSGI file. You need to specify it as a Python module, eg. "canteen.settings". Python will then use the system Python path to find the actual file.

I've tried to change the settings and the project to make it work since I had the error. Thank you for the reply. I'm now trying to figure out things and working out. Thank you Robert as well.

OK, just let us know if you need more help.

Hi gilies

I've edited my wsgi file as you told now I'm referring canteen.settings for settings as a python path. But still I'm getting an unhandled exception error.

Hi tony161293 -- what does it say in your error logs now?

One thing to look for is whether it can find the canteen.settings module. To clarify how it works -- when Python wants to find a module called canteen.settings, it looks at each of the directories on sys.path. For each of those directories, it looks for a subdirectory called canteen, and checks if there's a file called settings.py in that subdirectory.

One common mistake in a WSGI file is to add the directory canteen that contains settings.py to the path, rather than adding its parent.

Thank you Giles.

This is my error log.

2014-03-02 08:33:19,005 :Traceback (most recent call last): 2014-03-02 08:33:19,025 : File "/bin/user_wsgi_wrapper.py", line 67, in call 2014-03-02 08:33:19,037 : self.error_log_file.logger.exception("Error running WSGI application") 2014-03-02 08:33:19,037 : File "/usr/lib/python2.7/logging/init.py", line 1183, in exception 2014-03-02 08:33:19,038 : self.error(msg, args, kwargs) 2014-03-02 08:33:19,038 : File "/usr/lib/python2.7/logging/init.py", line 1176, in error 2014-03-02 08:33:19,038 : self._log(ERROR, msg, args, kwargs) 2014-03-02 08:33:19,038 : File "/usr/lib/python2.7/logging/init.py", line 1268, in _log 2014-03-02 08:33:19,038 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra) 2014-03-02 08:33:19,039 : File "/usr/lib/python2.7/logging/init.py", line 1242, in makeRecord 2014-03-02 08:33:19,039 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func) 2014-03-02 08:33:19,039 : File "/usr/lib/python2.7/logging/init.py", line 284, in init 2014-03-02 08:33:19,039 : self.threadName = threading.current_thread().name 2014-03-02 08:33:19,039 : File "/usr/lib/python2.7/threading.py", line 1158, in currentThread 2014-03-02 08:33:19,040 : return _active[_get_ident()] 2014-03-02 08:33:19,040 : File "/bin/user_wsgi_wrapper.py", line 59, in call 2014-03-02 08:33:19,040 : app_iterator = self.app(environ, start_response) 2014-03-02 08:33:19,040 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in call 2014-03-02 08:33:20,730 : self.load_middleware() 2014-03-02 08:33:20,730 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware 2014-03-02 08:33:20,730 : for middleware_path in settings.MIDDLEWARE_CLASSES: 2014-03-02 08:33:20,730 : File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in getattr 2014-03-02 08:33:20,743 : self._setup() 2014-03-02 08:33:20,743 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 42, in _setup 2014-03-02 08:33:20,772 : self._wrapped = Settings(settings_module) 2014-03-02 08:33:20,773 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 92, in init 2014-03-02 08:33:20,773 : raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e)) 2014-03-02 08:33:20,773 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings 2014-03-02 18:49:26,893 :Traceback (most recent call last): 2014-03-02 18:49:26,897 : File "/bin/user_wsgi_wrapper.py", line 67, in call 2014-03-02 18:49:26,897 : self.error_log_file.logger.exception("Error running WSGI application") 2014-03-02 18:49:26,897 : File "/usr/lib/python2.7/logging/init.py", line 1183, in exception 2014-03-02 18:49:26,897 : self.error(msg, args, kwargs) 2014-03-02 18:49:26,897 : File "/usr/lib/python2.7/logging/init.py", line 1176, in error 2014-03-02 18:49:26,898 : self._log(ERROR, msg, args, kwargs) 2014-03-02 18:49:26,898 : File "/usr/lib/python2.7/logging/init.py", line 1268, in _log 2014-03-02 18:49:26,898 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra) 2014-03-02 18:49:26,898 : File "/usr/lib/python2.7/logging/init.py", line 1242, in makeRecord 2014-03-02 18:49:26,899 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func) 2014-03-02 18:49:26,899 : File "/usr/lib/python2.7/logging/init.py", line 284, in init 2014-03-02 18:49:26,899 : self.threadName = threading.current_thread().name 2014-03-02 18:49:26,899 : File "/usr/lib/python2.7/threading.py", line 1158, in currentThread 2014-03-02 18:49:26,900 : return _active[_get_ident()] 2014-03-02 18:49:26,900 : File "/bin/user_wsgi_wrapper.py", line 59, in call 2014-03-02 18:49:26,900 : app_iterator = self.app(environ, start_response) 2014-03-02 18:49:26,900 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in call 2014-03-02 18:49:26,913 : self.load_middleware() 2014-03-02 18:49:26,913 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware 2014-03-02 18:49:26,913 : for middleware_path in settings.MIDDLEWARE_CLASSES: 2014-03-02 18:49:26,913 : File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in getattr 2014-03-02 18:49:26,946 : self._setup() 2014-03-02 18:49:26,946 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 42, in _setup 2014-03-02 18:49:26,956 : self._wrapped = Settings(settings_module) 2014-03-02 18:49:26,956 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 92, in init 2014-03-02 18:49:26,956 : raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e)) 2014-03-02 18:49:26,956 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings 2014-03-02 13:46:14,644 :/usr/lib/python2.7/threading.py:1158: RuntimeWarning: tp_compare didn't return -1 or -2 for exception 2014-03-02 13:46:14,645 : return _active[_get_ident()] 2014-03-02 13:46:14,645 :Traceback (most recent call last): 2014-03-02 13:46:14,645 : File "/bin/user_wsgi_wrapper.py", line 67, in call 2014-03-02 13:46:14,645 : self.error_log_file.logger.exception("Error running WSGI application") 2014-03-02 13:46:14,645 : File "/usr/lib/python2.7/logging/init.py", line 1183, in exception 2014-03-02 13:46:14,646 : self.error(msg, args, kwargs) 2014-03-02 13:46:14,646 : File "/usr/lib/python2.7/logging/init.py", line 1176, in error 2014-03-02 13:46:14,646 : self._log(ERROR, msg, args, kwargs) 2014-03-02 13:46:14,647 : File "/usr/lib/python2.7/logging/init.py", line 1268, in _log 2014-03-02 13:46:14,647 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra) 2014-03-02 13:46:14,647 : File "/usr/lib/python2.7/logging/init.py", line 1242, in makeRecord 2014-03-02 13:46:14,647 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func) 2014-03-02 13:46:14,648 : File "/usr/lib/python2.7/logging/init.py", line 284, in init 2014-03-02 13:46:14,648 : self.threadName = threading.current_thread().name 2014-03-02 13:46:14,648 : File "/usr/lib/python2.7/threading.py", line 1158, in currentThread 2014-03-02 13:46:14,648 : return _active[_get_ident()] 2014-03-02 13:46:14,648 : File "/bin/user_wsgi_wrapper.py", line 59, in call 2014-03-02 13:46:14,649 : app_iterator = self.app(environ, start_response) 2014-03-02 13:46:14,649 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in call 2014-03-02 13:46:14,649 : self.load_middleware() 2014-03-02 13:46:14,649 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware 2014-03-02 13:46:14,649 : for middleware_path in settings.MIDDLEWARE_CLASSES: 2014-03-02 13:46:14,649 : File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in getattr 2014-03-02 13:46:14,650 : self._setup() 2014-03-02 13:46:14,650 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 42, in _setup 2014-03-02 13:46:14,650 : self._wrapped = Settings(settings_module) 2014-03-02 13:46:14,650 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 142, in init 2014-03-02 13:46:14,650 : logging_config_func(self.LOGGING) 2014-03-02 13:46:14,651 : File "/usr/lib/python2.7/logging/config.py", line 803, in dictConfig 2014-03-02 13:46:14,651 : dictConfigClass(config).configure() 2014-03-02 13:46:14,651 : File "/usr/lib/python2.7/logging/config.py", line 568, in configure 2014-03-02 13:46:14,651 : 'filter %r: %s' % (name, e)) 2014-03-02 13:46:14,651 :ValueError: Unable to configure filter 'require_debug_false': Cannot resolve 'django.utils.log.RequireDebugFalse': No module named RequireDebugFalse 2014-03-02 13:46:19,788 :Traceback (most recent call last): 2014-03-02 13:46:19,788 : File "/bin/user_wsgi_wrapper.py", line 67, in call 2014-03-02 13:46:19,788 : self.error_log_file.logger.exception("Error running WSGI application") 2014-03-02 13:46:19,788 : File "/usr/lib/python2.7/logging/init.py", line 1183, in exception 2014-03-02 13:46:19,789 : self.error(msg, args, kwargs) 2014-03-02 13:46:19,789 : File "/usr/lib/python2.7/logging/init.py", line 1176, in error 2014-03-02 13:46:19,789 : self._log(ERROR, msg, args, kwargs) 2014-03-02 13:46:19,790 : File "/usr/lib/python2.7/logging/init.py", line 1268, in _log 2014-03-02 13:46:19,790 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra) 2014-03-02 13:46:19,790 : File "/usr/lib/python2.7/logging/init.py", line 1242, in makeRecord 2014-03-02 13:46:19,791 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func) 2014-03-02 13:46:19,791 : File "/usr/lib/python2.7/logging/init.py", line 284, in init 2014-03-02 13:46:19,791 : self.threadName = threading.current_thread().name 2014-03-02 13:46:19,791 : File "/usr/lib/python2.7/threading.py", line 1158, in currentThread 2014-03-02 13:46:19,791 : return _active[_get_ident()] 2014-03-02 13:46:19,792 : File "/bin/user_wsgi_wrapper.py", line 59, in call 2014-03-02 13:46:19,792 : app_iterator = self.app(environ, start_response) 2014-03-02 13:46:19,792 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in call 2014-03-02 13:46:19,792 : self.load_middleware() 2014-03-02 13:46:19,792 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware 2014-03-02 13:46:19,792 : for middleware_path in settings.MIDDLEWARE_CLASSES: 2014-03-02 13:46:19,793 : File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in getattr 2014-03-02 13:46:19,793 : self._setup() 2014-03-02 13:46:19,793 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 42, in _setup 2014-03-02 13:46:19,793 : self._wrapped = Settings(settings_module) 2014-03-02 13:46:19,793 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 142, in init 2014-03-02 13:46:19,793 : logging_config_func(self.LOGGING) 2014-03-02 13:46:19,793 : File "/usr/lib/python2.7/logging/config.py", line 803, in dictConfig 2014-03-02 13:46:19,794 : dictConfigClass(config).configure() 2014-03-02 13:46:19,794 : File "/usr/lib/python2.7/logging/config.py", line 568, in configure 2014-03-02 13:46:19,794 : 'filter %r: %s' % (name, e)) 2014-03-02 13:46:19,794 :ValueError: Unable to configure filter 'require_debug_false': Cannot resolve 'django.utils.log.RequireDebugFalse': No module named RequireDebugFalse 2014-03-02 19:50:33,206 :/usr/lib/python2.7/threading.py:1158: RuntimeWarning: tp_compare didn't return -1 or -2 for exception 2014-03-02 19:50:33,208 : return _active[_get_ident()] 2014-03-02 19:50:33,208 :Traceback (most recent call last): 2014-03-02 19:50:33,209 : File "/bin/user_wsgi_wrapper.py", line 67, in call 2014-03-02 19:50:33,209 : self.error_log_file.logger.exception("Error running WSGI application") 2014-03-02 19:50:33,209 : File "/usr/lib/python2.7/logging/init.py", line 1183, in exception 2014-03-02 19:50:33,209 : self.error(msg, args, kwargs) 2014-03-02 19:50:33,209 : File "/usr/lib/python2.7/logging/init.py", line 1176, in error 2014-03-02 19:50:33,210 : self._log(ERROR, msg, args, kwargs) 2014-03-02 19:50:33,210 : File "/usr/lib/python2.7/logging/init.py", line 1268, in _log 2014-03-02 19:50:33,210 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra) 2014-03-02 19:50:33,211 : File "/usr/lib/python2.7/logging/init.py", line 1242, in makeRecord 2014-03-02 19:50:33,211 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func) 2014-03-02 19:50:33,211 : File "/usr/lib/python2.7/logging/init.py", line 284, in init 2014-03-02 19:50:33,211 : self.threadName = threading.current_thread().name 2014-03-02 19:50:33,211 : File "/usr/lib/python2.7/threading.py", line 1158, in currentThread 2014-03-02 19:50:33,212 : return _active[_get_ident()] 2014-03-02 19:50:33,212 : File "/bin/user_wsgi_wrapper.py", line 59, in call 2014-03-02 19:50:33,212 : app_iterator = self.app(environ, start_response) 2014-03-02 19:50:33,212 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in call 2014-03-02 19:50:33,212 : self.load_middleware() 2014-03-02 19:50:33,213 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware 2014-03-02 19:50:33,213 : for middleware_path in settings.MIDDLEWARE_CLASSES: 2014-03-02 19:50:33,213 : File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in getattr 2014-03-02 19:50:33,213 : self._setup() 2014-03-02 19:50:33,213 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 42, in _setup 2014-03-02 19:50:33,214 : self._wrapped = Settings(settings_module) 2014-03-02 19:50:33,214 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 92, in init 2014-03-02 19:50:33,214 : raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e)) 2014-03-02 19:50:33,214 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings 2014-03-02 19:50:37,271 :Traceback (most recent call last): 2014-03-02 19:50:37,272 : File "/bin/user_wsgi_wrapper.py", line 67, in call 2014-03-02 19:50:37,272 : self.error_log_file.logger.exception("Error running WSGI application") 2014-03-02 19:50:37,272 : File "/usr/lib/python2.7/logging/init.py", line 1183, in exception 2014-03-02 19:50:37,272 : self.error(msg, args, kwargs) 2014-03-02 19:50:37,272 : File "/usr/lib/python2.7/logging/init.py", line 1176, in error 2014-03-02 19:50:37,273 : self._log(ERROR, msg, args, kwargs) 2014-03-02 19:50:37,273 : File "/usr/lib/python2.7/logging/init.py", line 1268, in _log 2014-03-02 19:50:37,273 : record = self.makeRecord(self.name, level, fn, lno, msg, args, exc_info, func, extra) 2014-03-02 19:50:37,273 : File "/usr/lib/python2.7/logging/init.py", line 1242, in makeRecord 2014-03-02 19:50:37,274 : rv = LogRecord(name, level, fn, lno, msg, args, exc_info, func) 2014-03-02 19:50:37,274 : File "/usr/lib/python2.7/logging/init.py", line 284, in init 2014-03-02 19:50:37,274 : self.threadName = threading.current_thread().name 2014-03-02 19:50:37,274 : File "/usr/lib/python2.7/threading.py", line 1158, in currentThread 2014-03-02 19:50:37,275 : return _active[_get_ident()] 2014-03-02 19:50:37,275 : File "/bin/user_wsgi_wrapper.py", line 59, in call 2014-03-02 19:50:37,275 : app_iterator = self.app(environ, start_response) 2014-03-02 19:50:37,275 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 250, in call 2014-03-02 19:50:37,275 : self.load_middleware() 2014-03-02 19:50:37,275 : File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 39, in load_middleware 2014-03-02 19:50:37,275 : for middleware_path in settings.MIDDLEWARE_CLASSES: 2014-03-02 19:50:37,276 : File "/usr/local/lib/python2.7/dist-packages/django/utils/functional.py", line 276, in getattr 2014-03-02 19:50:37,276 : self._setup() 2014-03-02 19:50:37,276 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 42, in _setup 2014-03-02 19:50:37,276 : self._wrapped = Settings(settings_module) 2014-03-02 19:50:37,276 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 92, in init 2014-03-02 19:50:37,276 : raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e)) 2014-03-02 19:50:37,276 :ImportError: Could not import settings 'canteen.settings' (Is it on sys.path?): No module named canteen.settings

I'm referring the parent directory of the directory which contains my settings.py file. my project path is /home/tony161293/home/projects/canteen appending this to the sys.path it should find the sub directory called canteen and the settings.py file. Still it's an unhandled exception.

Would you mind if I took a look at your files? That's probably the easiest way to debug this.