ImportError:没有名为';django.contrib.sessions';

ImportError:没有名为';django.contrib.sessions';,django,pythonanywhere,django-contrib,Django,Pythonanywhere,Django Contrib,该应用程序在我的开发环境中运行良好,但在我的PythonAnywhere实例中,Django似乎存在问题。你知道这是什么原因吗 Traceback (most recent call last): File "/home/cvcexport/genius/genius/local/lib/python3.5/site-packages/django/apps/config.py", line 118, in create cls = getattr(mod, cls_name) At

该应用程序在我的开发环境中运行良好,但在我的PythonAnywhere实例中,Django似乎存在问题。你知道这是什么原因吗

Traceback (most recent call last):
  File "/home/cvcexport/genius/genius/local/lib/python3.5/site-packages/django/apps/config.py", line 118, in create
    cls = getattr(mod, cls_name)
AttributeError: module 'django.contrib' has no attribute 'sessions'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "manage.py", line 22, in <module>
    execute_from_command_line(sys.argv)
  File "/home/cvcexport/genius/genius/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/home/cvcexport/genius/genius/local/lib/python3.5/site-packages/django/core/management/__init__.py", line 341, in execute
    django.setup()
  File "/home/cvcexport/genius/genius/local/lib/python3.5/site-packages/django/__init__.py", line 27, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/home/cvcexport/genius/genius/local/lib/python3.5/site-packages/django/apps/registry.py", line 85, in populate
    app_config = AppConfig.create(entry)
  File "/home/cvcexport/genius/genius/local/lib/python3.5/site-packages/django/apps/config.py", line 123, in create
    import_module(entry)
  File "/home/cvcexport/genius/genius/lib/python3.5/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 986, in _gcd_import
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 956, in _find_and_load_unlocked
ImportError: No module named 'django.contrib.sessions'
回溯(最近一次呼叫最后一次):
文件“/home/cvcexport/genius/genius/local/lib/python3.5/site packages/django/apps/config.py”,第118行,在create中
cls=getattr(mod,cls\u name)
AttributeError:模块“django.contrib”没有属性“sessions”
在处理上述异常期间,发生了另一个异常:
回溯(最近一次呼叫最后一次):
文件“manage.py”,第22行,在
从命令行(sys.argv)执行命令
文件“/home/cvcexport/genius/genius/local/lib/python3.5/site packages/django/core/management/__init___;.py”,第367行,从命令行执行
utility.execute()
文件“/home/cvcexport/genius/genius/local/lib/python3.5/site-packages/django/core/management/_-init___.py”,执行中第341行
django.setup()
文件“/home/cvcexport/genius/genius/local/lib/python3.5/site packages/django/_init__.py”,第27行,在安装程序中
应用程序。填充(设置。已安装的应用程序)
文件“/home/cvcexport/genius/genius/local/lib/python3.5/site packages/django/apps/registry.py”,第85行,填充
app_config=AppConfig.create(条目)
文件“/home/cvcexport/genius/genius/local/lib/python3.5/site packages/django/apps/config.py”,第123行,在create中
导入模块(条目)
文件“/home/cvcexport/genius/genius/lib/python3.5/importlib/___init__.py”,第126行,在导入模块中
return _bootstrap._gcd_import(名称[级别:],包,级别)
文件“”,第986行,在_gcd_import中
文件“”,第969行,在“查找”和“加载”中
文件“”,第956行,在“查找”和“加载”中解锁
ImportError:没有名为“django.contrib.sessions”的模块

这一定是Django(
1.10.5
)这个特定版本的问题,因为更新到
1.10.8
似乎已经解决了这个问题。

有人能帮我改进这个问题吗?我不明白它怎么了。