Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Erroneous imports in admin/options module #8

Open
ghost opened this Issue · 2 comments

1 participant

Ross Lawley
Deleted user

I found out that when trying to activate your admin 'module' in my settings.py / INSTALLED_APPS, starting the embedded server will fail.

It turned out that one of the import statements referenced the wrong module for importing the LOOKUP_SEP constant.

Changing

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

to

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

made it actually compile and load so far.

Ross Lawley
Owner

What version of django are you running?

Deleted user

sorry for the late reply, but it is 1.5+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.