Installation problem (version 1.2.1)

Showing 1-3 of 3 messages
Installation problem (version 1.2.1) Derek 5/28/10 1:56 AM
I have just upgraded my version of Ubuntu, which then also installed
Python 2.6.  I thought this was a good opportunity to upgrade to
Django 1.2.  I removed all traces of Django 1.1.1 that I could find,
along with extra plugins/modules/apps etc, and ran the install for
Django 1.2.1, checking that I was specifying "python2.6" when doing

However when I try and start a new project (
startproject test), I get:

Traceback (most recent call last):
  File "/usr/local/bin/", line 2, in <module>
    from django.core import management
  File "/usr/lib/pymodules/python2.6/django/core/management/",
line 11, in <module>
AttributeError: 'module' object has no attribute 'get_version'

If I start a Python session, I can do:

>>> import django
>>> dir(django)
['__builtins__', '__doc__', '__file__', '__name__', '__package__', '__path__']

which seems incomplete?

What (probably obvious) step or action have I missed or messed up?


Re: Installation problem (version 1.2.1) Daniel Roseman 5/28/10 2:07 AM
Sounds like you have an old 'django' directory somewhere on your
pythonpath that is empty apart from an

In your shell, do:

>>> import django
>>> django.__path__

to see where it is, and delete it.
Re: Installation problem (version 1.2.1) Alex Robbins 5/28/10 6:32 AM
I think Daniel might mean you can also use the __file__ attribute, as
>>> import django
>>> django.__file__

Hope that helps,