[django-blocks] #52: Issue 10 in django-blocks: ImportError: cannot import name BaseQuery

16 views
Skip to first unread message

django...@googlecode.com

unread,
May 19, 2010, 9:32:16 PM5/19/10
to django...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 10 by solubet: ImportError: cannot import name BaseQuery
http://code.google.com/p/django-blocks/issues/detail?id=10

What steps will reproduce the problem?

1.Download blocks
2.Download demo
3.Download tagging
4.manage.py runserver (same for syncdb)

What is the expected output? What do you see instead?
Either running the development server or synccing the db

I have this error (just the last in the trace):

File "C:\work\prueba\blocks\apps\core\managers.py", line 7, in <module>
from django.db.models.sql import BaseQuery
ImportError: cannot import name BaseQuery

What version of the product are you using? On what operating system?

Django from svn
Everything in 1,2,3, from svn
Windows XP

Please provide any additional information below.

Nothing to add...

--
You received this message because you are subscribed to the Google Groups "django-blocks" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-block...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-blocks?hl=en.

django...@googlecode.com

unread,
May 20, 2010, 10:04:38 AM5/20/10
to django...@googlegroups.com

Comment #1 on issue 10 by solubet: ImportError: cannot import name BaseQuery
http://code.google.com/p/django-blocks/issues/detail?id=10

I ninjaed this:

from django.db.models.sql import Query as BaseQuery


HORRIBLE solution, maybe? My research pointed me to some nerdy chat about
some Oracle
thing related to BasedQuery, which is now something like deprecated or
whatever.

I'm sorry my lack of technicalities... I have a Computer Science Engineer
but I'm
lazy too.

By the way, the ninja just worked.


Have fun!

django...@googlecode.com

unread,
May 20, 2010, 4:52:09 PM5/20/10
to django...@googlegroups.com
Updates:
Status: Accepted

Comment #2 on issue 10 by kimus.linuxus: ImportError: cannot import name
BaseQuery
http://code.google.com/p/django-blocks/issues/detail?id=10

the latest version of django already has support for multiple databases so
I guess
django-blocks should update to the latest 1.2 version and get rid of the
MultiDBManager.

django...@googlecode.com

unread,
May 20, 2010, 5:55:19 PM5/20/10
to django...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 10 by kimus.linuxus: ImportError: cannot import name
BaseQuery
http://code.google.com/p/django-blocks/issues/detail?id=10

should work in the latest commit (r233)
Reply all
Reply to author
Forward
0 new messages