You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# $WEBROOT/manage.py syncdb --noinput
Traceback (most recent call last):
File "/var/www/django/speeqeweb/manage.py", line 3, in <module>
from django.core.management import execute_manager
ImportError: cannot import name execute_manager
A little research suggests that this is related to a Django changes
execute_manager was deprecated in django 1.4 and was removed entirely in django 1.6. Theoretically execute_manager can be replaced with execute_from_command_line so we end up with this:
#!/usr/bin/env python
#django generated file
from django.core.management import execute_from_command_line
try:
import settings # Assumed to be in the same directory.
except ImportError:
import sys
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
sys.exit(1)
if __name__ == "__main__":
execute_from_command_line(settings)
But that doesn't resolve the issue as I now get:
# $WEBROOT/manage.py syncdb --noinput
Traceback (most recent call last):
File "/var/www/django/speeqeweb/manage.py", line 12, in <module>
execute_from_command_line(settings)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 384, in execute_from_command_line
utility = ManagementUtility(argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 182, in __init__
self.prog_name = os.path.basename(self.argv[0])
TypeError: 'module' object has no attribute '__getitem__'
The text was updated successfully, but these errors were encountered:
I haven't heard anything back from Speeqe upstream and I assume that the update would be non-trivial so I am considering replacing Speeqe with CandyChat...
conf.d/main
is failing on this line:A little research suggests that this is related to a Django changes
execute_manager
was deprecated in django 1.4 and was removed entirely in django 1.6. Theoreticallyexecute_manager
can be replaced withexecute_from_command_line
so we end up with this:But that doesn't resolve the issue as I now get:
The text was updated successfully, but these errors were encountered: