python - Django MongoDB 迁移警告

标签 python django mongodb database-migration djongo

  Applying contenttypes.0001_initial...This version of djongo does not support "schema validation using CONSTRAINT" fully. Visit https://www.patreon.com/nesdis
 OK
  Applying auth.0001_initial...This version of djongo does not support "schema validation using KEY" fully. Visit https://www.patreon.com/nesdis
This version of djongo does not support "schema validation using REFERENCES" fully. Visit https://www.patreon.com/nesdis
 OK
  Applying admin.0001_initial... OK
  Applying admin.0002_logentry_remove_auto_add... OK
  Applying admin.0003_logentry_add_action_flag_choices... OK
  Applying contenttypes.0002_remove_content_type_name...This version of djongo does not support "COLUMN DROP NOT NULL " fully. Visit https://www.patreon.com/nesdis
This version of djongo does not support "DROP CASCADE" fully. Visit https://www.patreon.com/nesdis
 OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying sessions.0001_initial... OK

我正在尝试将 Django 与 MongoDB 数据库连接起来。 为什么我在迁移时收到这些警告?

最佳答案

Django 项目本身不支持 MongoDB,只能通过 Djongo 适配器支持。

这些模型/迁移使用了 Djongo 目前不支持的某些 Django 核心功能,从错误消息中可以明显看出这一点。

关于python - Django MongoDB 迁移警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63032505/

相关文章:

django 关键字不能是表达式

java - MongoDB Java 驱动程序 4.0+ 会重试 DBCursor.next() 吗?

mongodb - 将 mongodb atlas 连接到 shell 时出错

python - 如果不同的变量是 True 或 False Python 3.3,则打印

python - 我怎样才能只获得类变量?

python - 仅对大文件(>3M)的关闭文件进行 I/O 操作

node.js - 使用 Mongo 排序

python - “合并”列表中元素上的 2 个数据框? - 双 key

python - matplotlib 3d 回到 2d

python - 如何从 Django 中的 url 中删除空格