Noel
Noel

Reputation: 3980

Django installation has no __init__.py in django.core

I have a ubuntu lucid VPS server where I try to run my django development server.

Running python manage.py runserver gives me the following error:

Traceback (most recent call last):
  File "manage.py", line 2, in <module>
    from django.core.management import execute_manager
ImportError: No module named core.management

I can import django without any problem in a python shell. I looked in the django install directory and noticed there is no \__init__.py in the django/core folder. Which I beleive is the source of the problem for python to register django.core as a module.

It then looks like an installation issue. I installed django using apt-get.

FYI the django install worked perfectly on my home computer with same OS.

Any ideas?

Upvotes: 0

Views: 257

Answers (1)

Noel
Noel

Reputation: 3980

solved.

Thank you for all the suggestions. I installed django using the tar ball as instructed in the django website.

apt-get is not a good idea to install django. I also had to manually remove the left over django folder in /usr/lib/pymodules/python2.6 after using apt-get remove.

Upvotes: 1

Related Questions