Well my current project is simply bugging out on pythonanywhere. While it worked perfectly on my home pc.
The github location: https://github.com/pulli23/IFoxHuntGameSite
When I finally got around to set up everything correct (basically I used the wizard to create a new "app" called "IFoxHuntGameSite", then delete the main folder and finally cloned github), an error occurred when 'reloading website':
2015-12-04 12:59:20,512 :Traceback (most recent call last):
2015-12-04 12:59:20,513 : File "/usr/local/lib/python3.4/dist-packages/django/utils/module_loading.py", line 21, in import_by_path
2015-12-04 12:59:20,513 : module = import_module(module_path)
2015-12-04 12:59:20,513 : File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
2015-12-04 12:59:20,513 : return _bootstrap._gcd_import(name[level:], package, level)
2015-12-04 12:59:20,514 : File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
2015-12-04 12:59:20,518 : File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
2015-12-04 12:59:20,518 : File "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked
2015-12-04 12:59:20,518 :ImportError: No module named 'django.middleware.security'
2015-12-04 12:59:20,518 :
2015-12-04 12:59:20,518 :During handling of the above exception, another exception occurred:
2015-12-04 12:59:20,519 :
2015-12-04 12:59:20,519 :Traceback (most recent call last):
2015-12-04 12:59:20,519 : File "/bin/user_wsgi_wrapper.py", line 134, in __call__
2015-12-04 12:59:20,519 : self.error_log_file.logger.exception("Error running WSGI application")
2015-12-04 12:59:20,519 : File "/usr/lib/python3.4/logging/__init__.py", line 1310, in exception
2015-12-04 12:59:20,519 : self.error(msg, *args, **kwargs)
2015-12-04 12:59:20,520 : File "/usr/lib/python3.4/logging/__init__.py", line 1303, in error
2015-12-04 12:59:20,520 : self._log(ERROR, msg, args, **kwargs)
2015-12-04 12:59:20,520 : File "/usr/lib/python3.4/logging/__init__.py", line 1409, in _log
2015-12-04 12:59:20,521 : self.handle(record)
2015-12-04 12:59:20,521 : File "/usr/lib/python3.4/logging/__init__.py", line 1418, in handle
2015-12-04 12:59:20,521 : if (not self.disabled) and self.filter(record):
2015-12-04 12:59:20,521 : File "/usr/lib/python3.4/logging/__init__.py", line 706, in filter
2015-12-04 12:59:20,522 : for f in self.filters:
2015-12-04 12:59:20,522 : File "/bin/user_wsgi_wrapper.py", line 126, in __call__
2015-12-04 12:59:20,522 : app_iterator = self.app(environ, start_response)
2015-12-04 12:59:20,522 : File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/wsgi.py", line 187, in __call__
2015-12-04 12:59:20,522 : self.load_middleware()
2015-12-04 12:59:20,523 : File "/usr/local/lib/python3.4/dist-packages/django/core/handlers/base.py", line 45, in load_middleware
2015-12-04 12:59:20,523 : mw_class = import_by_path(middleware_path)
2015-12-04 12:59:20,523 : File "/usr/local/lib/python3.4/dist-packages/django/utils/module_loading.py", line 26, in import_by_path
2015-12-04 12:59:20,523 : sys.exc_info()[2])
2015-12-04 12:59:20,523 : File "/usr/local/lib/python3.4/dist-packages/django/utils/six.py", line 549, in reraise
2015-12-04 12:59:20,523 : raise value.with_traceback(tb)
2015-12-04 12:59:20,524 : File "/usr/local/lib/python3.4/dist-packages/django/utils/module_loading.py", line 21, in import_by_path
2015-12-04 12:59:20,524 : module = import_module(module_path)
2015-12-04 12:59:20,524 : File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
2015-12-04 12:59:20,524 : return _bootstrap._gcd_import(name[level:], package, level)
2015-12-04 12:59:20,524 : File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
2015-12-04 12:59:20,524 : File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
2015-12-04 12:59:20,524 : File "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked
2015-12-04 12:59:20,525 :django.core.exceptions.ImproperlyConfigured: Error importing module django.middleware.security: "No module named 'django.middleware.security'"
This error did not occur at all in my home project, what is the difference? At home I use django 1.9 btw?