Django - “no module named django.core.management”
2016-01-18 19:49
501 查看
在使用Django启动实例应用时,报错:no module named django.core.management
本文出自 “创者思” 博客,请务必保留此出处http://strongit.blog.51cto.com/10020534/1736289
(cmdb)root@ubuntu:/home/xiaofei/cmdb/django-webblog/djblog# ./manage.py syncdb Traceback (most recent call last): File "./manage.py", line 8, in <module> 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路径,客官均可以试试。
本文出自 “创者思” 博客,请务必保留此出处http://strongit.blog.51cto.com/10020534/1736289
相关文章推荐
- 利用BAPI(BAPI_GOODSMVT_CREATE)投料消耗(261)销售订单E库存
- GOOGLE搜索從入門到精通V4.0
- $state.go 传递参数
- Windows 平台下 Go 语言的安装和环境变量设置
- Windows 平台下 Go 语言的安装和环境变量设置
- Google推荐的图片加载库Glide介绍
- 如何实现支持数亿用户的长连消息系统 | Golang高并发案例
- django静态文件配置
- goang Receiver & interface
- 执行django-admin.py时,打开编辑器的解决办法
- Algorithm--Insertion Sort
- 我要google一下
- googel软件测试之道——总结
- GO并发
- django访问静态文件
- UVA 543 Goldbach's Conjecture
- django setting设置路径
- django向view传递数据
- beego 使用例子
- Django开发环境搭建