Django从1.8.8升级到1.11.13问题

时间:2018-05-06 10:43:53

标签: django

我收到以下错误。我添加了站点框架,允许域并更新了中间件和上下文处理器,但无法理解此错误。任何帮助将不胜感激,因为这是现场直播。

manager@web-server:~/Websites/shen$ python manage.py migrate
Traceback (most recent call last):
  File "manage.py", line 10, in <module>    
execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management    /__init__.py", line 364, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 338, in execute
django.setup()
  File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
  File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
app_config.import_models()
  File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 202, in import_models
self.models_module = import_module(models_module_name)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
  File "/usr/local/lib/python2.7/dist-packages/easy_thumbnails/models.py", line 6, in <module>
from easy_thumbnails import utils, signal_handlers
  File "/usr/local/lib/python2.7/dist-packages/easy_thumbnails/utils.py", line 15, in <module>
from easy_thumbnails.conf import settings
  File "/usr/local/lib/python2.7/dist-packages/easy_thumbnails/conf.py", line 334, in <module>
settings = Settings()
  File "/usr/local/lib/python2.7/dist-packages/easy_thumbnails/conf.py", line 21, in __init__
super(AppSettings, self).__init__(*args, **kwargs)
TypeError: __init__() takes exactly 2 arguments (1 given)

0 个答案:

没有答案