Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Django 1.8.1 - ImportError: cannot import name execute_manager #22

Open
ghost opened this issue May 19, 2015 · 4 comments
Open

Django 1.8.1 - ImportError: cannot import name execute_manager #22

ghost opened this issue May 19, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented May 19, 2015

It looks like starting 1.6.1 Django no longer supports ImportError: cannot import name execute_manager

Can you upgrade the code to allow the project to be upgraded to the latest version of Django?

@gregneagle
Copy link
Contributor

It's unlikely I'll do this soon, as I have many other projects and priorities currently. You might want to look at Steve Keung's fork: https://github.com/SteveKueng/munkiwebadmin

@whimsyniche
Copy link

Running python manage.py syncdb got the following result:

python manage.py syncdb
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'm currently running Django 1.8.3 so I'll try Steve Keung's fork – thank you!

EDIT: An update, Django 1.8.3 is working perfectly fine with Steve Keung's fork. 😌

@ghost
Copy link
Author

ghost commented Oct 3, 2015

For posterity, I'm playing with some theme updates (bootstrap3, etc) and Django 1.8.4. The following has been working for me so far:

#!/usr/bin/env python
import os, sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
    from django.core.management import execute_from_command_line
    execute_from_command_line(sys.argv)

@alexisskeates
Copy link

Did you have any trouble getting Steve Keung's fork to work. I've hit the same problem and trying his fork which is throwing up a different set of issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants