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
This error is execute_manager() Was removed after 1.4 version.
so following changes code:
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "<app>.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
'web > Django' 카테고리의 다른 글
django ie8 / ie9 json save as problem (0) | 2014.10.01 |
---|---|
django template if equal (0) | 2014.09.30 |
google plue login error 401 invalid_client (0) | 2014.09.28 |
remove django admin page auth menu (0) | 2014.09.24 |
python2.7 Django1.6.x admin site template filed path for mac (0) | 2014.09.23 |