Skip to content

Instantly share code, notes, and snippets.

@bendikro
Created August 31, 2010 22:57
Show Gist options
  • Save bendikro/559930 to your computer and use it in GitHub Desktop.
Save bendikro/559930 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/devilry/lib/devilry-django/adminscripts/bin/devilry-user.py", line 75, in <module>
u = User.objects.get(username=username)
File "/devilry/lib/django/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/devilry/lib/django/django/db/models/query.py", line 333, in get
clone = self.filter(*args, **kwargs)
File "/devilry/lib/django/django/db/models/query.py", line 550, in filter
return self._filter_or_exclude(False, *args, **kwargs)
File "/devilry/lib/django/django/db/models/query.py", line 568, in _filter_or_exclude
clone.query.add_q(Q(*args, **kwargs))
File "/devilry/lib/django/django/db/models/sql/query.py", line 1131, in add_q
can_reuse=used_aliases)
File "/devilry/lib/django/django/db/models/sql/query.py", line 1026, in add_filter
negate=negate, process_extras=process_extras)
File "/devilry/lib/django/django/db/models/sql/query.py", line 1182, in setup_joins
field, model, direct, m2m = opts.get_field_by_name(name)
File "/devilry/lib/django/django/db/models/options.py", line 291, in get_field_by_name
cache = self.init_name_map()
File "/devilry/lib/django/django/db/models/options.py", line 321, in init_name_map
for f, model in self.get_all_related_m2m_objects_with_model():
File "/devilry/lib/django/django/db/models/options.py", line 396, in get_all_related_m2m_objects_with_model
cache = self._fill_related_many_to_many_cache()
File "/devilry/lib/django/django/db/models/options.py", line 410, in _fill_related_many_to_many_cache
for klass in get_models():
File "/devilry/lib/django/django/db/models/loading.py", line 167, in get_models
self._populate()
File "/devilry/lib/django/django/db/models/loading.py", line 64, in _populate
self.load_app(app_name)
File "/devilry/lib/django/django/db/models/loading.py", line 78, in load_app
models = import_module('.models', app_name)
File "/devilry/lib/django/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/devilry/devilry-django/devilry/../devilry/addons/grade_schema/models.py", line 2, in <module>
ImportError: No module named models
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment