brosner / django-groups

Group support for Django (extracted from Pinax)
54 stars 11 forks source link

cannot import name LOOKUP_SEP Django 1.5 #2

Open nkeilar opened 11 years ago

nkeilar commented 11 years ago

Using django-groups==0.1.dev11

Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x9e2a38c>>
Traceback (most recent call last):
  File "/home/madteckhead/.virtualenvs/fresh-start/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 92, in inner_run
    self.validate(display_num_errors=True)
  File "/home/madteckhead/.virtualenvs/fresh-start/local/lib/python2.7/site-packages/django/core/management/base.py", line 280, in validate
    num_errors = get_validation_errors(s, app)
  File "/home/madteckhead/.virtualenvs/fresh-start/local/lib/python2.7/site-packages/django/core/management/validation.py", line 35, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/home/madteckhead/.virtualenvs/fresh-start/local/lib/python2.7/site-packages/django/db/models/loading.py", line 166, in get_app_errors
    self._populate()
  File "/home/madteckhead/.virtualenvs/fresh-start/local/lib/python2.7/site-packages/django/db/models/loading.py", line 75, in _populate
    self.load_app(app_name)
  File "/home/madteckhead/.virtualenvs/fresh-start/local/lib/python2.7/site-packages/django/db/models/loading.py", line 96, in load_app
    models = import_module('.models', app_name)
  File "/home/madteckhead/.virtualenvs/fresh-start/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/madteckhead/workspace/noshlyfs/apps/basic_groups/models.py", line 7, in <module>
    from groups.base import Group
  File "/home/madteckhead/.virtualenvs/fresh-start/local/lib/python2.7/site-packages/groups/base.py", line 7, in <module>
    from django.db.models.sql.constants import LOOKUP_SEP
ImportError: cannot import name LOOKUP_SEP
nkeilar commented 11 years ago

-from django.db.models.sql.constants import LOOKUP_SEP +from django.db.models.constants import LOOKUP_SEP