Django - “no module named django.core.management”
(cmdb)root@ubuntu:/home/xiaofei/cmdb/django-webblog/djblog# ./manage.py syncdb
Traceback (most recent call last):
File "./manage.py", line 8, in
from django.core.management import execute_from_command_line
ImportError: No module named django.core.management
구 글 조회 결과:
(cmdb)root@ubuntu:/home/xiaofei/cmdb/django-webblog/djblog# sudo ./manage.py startapp blog
(cmdb)root@ubuntu:/home/xiaofei/cmdb/django-webblog/djblog# sudo ./manage.py syncdb
Creating tables ...
Creating table django_admin_log
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_groups
Creating table auth_user_user_permissions
Creating table auth_user
Creating table django_content_type
Creating table django_session
You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Username (leave blank to use 'root'):
Email address:
Password:
Password (again):
Superuser created successfully.
Installing custom SQL ...
Installing indexes ...
Installed 0 object(s) from 0 fixture(s)
python 버 전이 잘못 되 었 거나 manage.py 에서 python 경 로 를 지정 할 수 있 으 며,손님 들 은 모두 시도 해 볼 수 있 습 니 다.
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
html 및 css를 사용하는 반응형 navbar햄버거 메뉴는 내비게이션의 표준 아이콘이 되었으며 오늘날 대부분의 주류 플랫폼과 앱에서도 인기를 얻고 있습니다. 모양이 햄버거를 닮았다고 하여 붙여진 이름입니다. 햄버거 메뉴를 사용하는 이유는 무엇입니까? 햄버거 메...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.