I see the following in my error log
2016-12-21 03:05:31,936 :Error running WSGI application
2016-12-21 03:05:32,123 :ImportError: No module named migration
2016-12-21 03:05:32,123 : File "/var/www/bholu6933_pythonanywhere_com_wsgi.py", line 12, in <module>
2016-12-21 03:05:32,123 : application = StaticFilesHandler(get_wsgi_application())
2016-12-21 03:05:32,124 :
2016-12-21 03:05:32,124 : File "/home/Bholu6933/codeshare/myvenv/local/lib/python2.7/site-packages/django/core/wsgi.py", line 13, in get_wsgi_application
2016-12-21 03:05:32,124 : django.setup(set_prefix=False)
2016-12-21 03:05:32,124 :
2016-12-21 03:05:32,124 : File "/home/Bholu6933/codeshare/myvenv/local/lib/python2.7/site-packages/django/__init__.py", line 20, in setup
2016-12-21 03:05:32,124 : from django.utils.log import configure_logging
2016-12-21 03:05:32,124 :
2016-12-21 03:05:32,124 : File "/home/Bholu6933/codeshare/myvenv/local/lib/python2.7/site-packages/django/utils/log.py", line 10, in <module>
2016-12-21 03:05:32,125 : from django.core.management.color import color_style
2016-12-21 03:05:32,125 :
2016-12-21 03:05:32,125 : File "/home/Bholu6933/codeshare/myvenv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 13, in <module>
2016-12-21 03:05:32,125 : from django.core.management.base import (
2016-12-21 03:05:32,125 :
2016-12-21 03:05:32,125 : File "/home/Bholu6933/codeshare/myvenv/local/lib/python2.7/site-packages/django/core/management/base.py", line 17, in <module>
2016-12-21 03:05:32,125 : from django.db.migrations.exceptions import MigrationSchemaMissing
2016-12-21 03:05:32,125 :
2016-12-21 03:05:32,125 : File "/home/Bholu6933/codeshare/myvenv/local/lib/python2.7/site-packages/django/db/migrations/__init__.py", line 1, in <module>
2016-12-21 03:05:32,125 : from .migration import Migration, swappable_dependency # NOQA
My WSGI
config file looks like
import os
import sys
path = '/home/Bholu6933/codeshare' # use your own PythonAnywhere username here
if path not in sys.path:
sys.path.append(path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'django_project.settings'
from django.core.wsgi import get_wsgi_application
from django.contrib.staticfiles.handlers import StaticFilesHandler
application = StaticFilesHandler(get_wsgi_application())
Does anyone know how this error can be fixed?