Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

django2.1:cannot import name 'QUERY_TERMS' from 'django.db.models.sql.constants' #619

Closed
rotateX opened this issue Aug 26, 2018 · 5 comments

Comments

@rotateX
Copy link

rotateX commented Aug 26, 2018

试了下网上说的方法,

from django.db.models.sql.query import LOOKUP_SEP, QUERY_TERMS
改成

from django.db.models.sql.query import LOOKUP_SEP
from django.db.models.sql.constants import QUERY_TERMS

还是报错
cannot import name 'QUERY_TERMS' from 'django.db.models.sql.constants'

@bestshanjinghao
Copy link

我跟你同一个问题,不仅仅是这个问题后面还有好多问题,好像都是新版本更改了引用路径

@rotateX
Copy link
Author

rotateX commented Aug 29, 2018

@bestshanjinghao 解决了吗

@wgbbiao
Copy link
Collaborator

wgbbiao commented Aug 29, 2018

django 2.1 没有这个东西了.

@bestshanjinghao
Copy link

Django降级到2,0.2就解决了 应该就是wgbbiao 老哥说的原因

@rotateX
Copy link
Author

rotateX commented Aug 29, 2018

@bestshanjinghao 好的 谢谢啦

@rotateX rotateX closed this as completed Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants