user3050288
user3050288

Reputation: 33

error in python virtual environment

I am trying to run a project that was setup in another server, but getting the following error. I am using python 2.7, django, virtualenv. So I am running the project inside a python virtual environment

(virtualenv)[web.srv1 daily# python manage.py runserver 0.0.0.0:8000

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

I used the method mentioned in the below link to setup the virtual environment.

http://toic.org/blog/2011/wsgi-on-cpanel-improved/

This project was setup inside a cpanel server. But the current server I using is not a cpanel server. It is normal centos server.

Can somebody help me to track down the issue.

Upvotes: 1

Views: 446

Answers (1)

Nafiul Islam
Nafiul Islam

Reputation: 82600

This is probably because you're using a project that used a different version of django from the one you have in your virtualenv.

This problem has arisen in the past, and has been answered on stackoverflow. The link.

Upvotes: 2

Related Questions