munki / munkiwebadmin

Web app to manage a Munki repo and monitor Munki clients
Other
92 stars 16 forks source link

Django 1.8.1 - ImportError: cannot import name execute_manager #22

Open ghost opened 9 years ago

ghost commented 9 years ago

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 commented 9 years ago

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 commented 9 years ago

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. :relieved:

ghost commented 9 years ago

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 commented 9 years ago

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.