jukanntenn / django-mptt-comments

拓展 django 官方评论库,提供无限层级的评论支持
MIT License
36 stars 12 forks source link

安装时提示这个错误:AttributeError: 'MarkedTextField' object has no attribute 'db_collation' #3

Open qlzzriyue opened 3 years ago

qlzzriyue commented 3 years ago

Description

完全按照'安装'提示,一步一步进行,在‘python manage.py migrate’数据迁移的时候,报错。

What I Did

(venv) I:\project\blog>python manage.py migrate
Traceback (most recent call last):
  File "I:\project\blog\manage.py", line 22, in <module>
    main()
  File "I:\project\blog\manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "I:\project\blog\venv\lib\site-packages\django\core\management\__init__.py", line 419, in execute_from_command_line

    utility.execute()
  File "I:\project\blog\venv\lib\site-packages\django\core\management\__init__.py", line 413, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "I:\project\blog\venv\lib\site-packages\django\core\management\base.py", line 354, in run_from_argv
    self.execute(*args, **cmd_options)
  File "I:\project\blog\venv\lib\site-packages\django\core\management\base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "I:\project\blog\venv\lib\site-packages\django\core\management\base.py", line 89, in wrapped
    res = handle_func(*args, **kwargs)
  File "I:\project\blog\venv\lib\site-packages\django\core\management\commands\migrate.py", line 75, in handle
    self.check(databases=[database])
  File "I:\project\blog\venv\lib\site-packages\django\core\management\base.py", line 419, in check
    all_issues = checks.run_checks(
  File "I:\project\blog\venv\lib\site-packages\django\core\checks\registry.py", line 76, in run_checks
    new_errors = check(app_configs=app_configs, databases=databases)
  File "I:\project\blog\venv\lib\site-packages\django\core\checks\model_checks.py", line 34, in check_all_models
    errors.extend(model.check(**kwargs))
  File "I:\project\blog\venv\lib\site-packages\django\db\models\base.py", line 1271, in check
    *cls._check_fields(**kwargs),
  File "I:\project\blog\venv\lib\site-packages\django\db\models\base.py", line 1381, in _check_fields
    errors.extend(field.check(**kwargs))
  File "I:\project\blog\venv\lib\site-packages\django\db\models\fields\__init__.py", line 2125, in check
    *self._check_db_collation(databases),
  File "I:\project\blog\venv\lib\site-packages\django\db\models\fields\__init__.py", line 2135, in _check_db_collation
    self.db_collation is None or
AttributeError: 'MarkedTextField' object has no attribute 'db_collation'
Paul-sunnan commented 2 years ago

我也遇到了这个问题,有解决方法了吗?