#12730: "cannot import name utils" in "django.db.backends.postgresql_psycopg2"
---------------------------------------------------+------------------------
Reporter: ramusus | Owner: nobody
Status: new | Milestone:
Component: Database layer (models, ORM) | Version: 1.1
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (by kmtracey):
I cannot recreate this. I'm a little confused by this bit of your
traceback:
{{{
File
"/home/ram/workspace/movister/web_site/django/core/management/__init__.py",
line 252, in fetch_command
app_name = get_commands()[subcommand]
File "/home/ram/workspace/movister/web_site/deseb/__init__.py", line 96,
in inner
add_aka_support()
File "/home/ram/workspace/movister/web_site/deseb/__init__.py", line 29,
in add_aka_support
import django.db.models
}}}
I do not understand why `get_commands()[subcommand]` is leaping off to an
`__init__.py` file in (apparently?) one of your apps? I can see how code
within `get_commands` might trigger load of your app's `__init__.py` but
if that is what's happening I don't see why the line of code within
`get_commands` isn't included in the stack trace.
What is this 'deseb'? Does it have management commands? Maybe try deleting
all .pyc files and running again?
--
Ticket URL: <http://code.djangoproject.com/ticket/12730#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.