Fang-of-Mongo icon indicating copy to clipboard operation
Fang-of-Mongo copied to clipboard

ImportError: cannot import name execute_manager

Open TimoRiikonen opened this issue 9 years ago • 6 comments

Root cause: This project is very old and not maintained any more. In other words scrap it and look for something else.

If you still want to use this, you need to use an earlier Django version than 1.4: execute_manager deprecated in Django 1.4 as part of the project layout refactor and was removed in 1.6 per the deprecation timeline: https://docs.djangoproject.com/en/1.4/internals/deprecation/#id3

To fix this error you should either install a compatible version of Django for the project or update the manage.py to new style which does not use execute_manager: https://docs.djangoproject.com/en/1.4/releases/1.4/#updated-default-project-layout-and-manage-py Most likely if your manage.py is not compatible with 1.6 then neither is the rest of the project. You should find the appropriate Django version for the project.

TimoRiikonen avatar Sep 18 '15 08:09 TimoRiikonen

Hi, TimoRiikonen, Is there any requirements for the version of python?

whutjs avatar Oct 17 '16 15:10 whutjs

Hi, sorry but I don't remember and I don't have this environment any more easily reachable, so I don't have any answer to you.

TimoRiikonen avatar Jun 12 '17 14:06 TimoRiikonen

First start failure on a fresh installed Debian 8.8 64bit

./manage.py runserver

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

my python version Python 3.4.2

django version: django-admin --version 1.7.11

AysadKozanoglu avatar Jul 14 '17 19:07 AysadKozanoglu

also dont work on ubuntu 16.04 fresh installed same like above

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

AysadKozanoglu avatar Jul 14 '17 21:07 AysadKozanoglu

Hi, Django version must be 1.3.

TimoRiikonen avatar Jul 17 '17 05:07 TimoRiikonen

Hi dear

Sussan787 avatar Jun 23 '23 04:06 Sussan787