Comments (8)
你好pip install -Ur requirements.txt
这个操作执行了吗?
报错是在执行什么命令的时候出现的呢?
另外麻烦贴下详细点的错误信息.
from djangoblog.
Traceback (most recent call last):
File "E:\pycharm\PyCharm 2017.1.2\helpers\pycharm\django_manage.py", line 43, in
run_module(manage_file, None, 'main', True)
File "D:\python3.5\lib\runpy.py", line 205, in run_module
return _run_module_code(code, init_globals, run_name, mod_spec)
File "D:\python3.5\lib\runpy.py", line 96, in run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "D:\python3.5\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "F:/beifeng/pythonwork/djblog\manage.py", line 22, in
execute_from_command_line(sys.argv)
File "D:\python3.5\lib\site-packages\django\core\management_init.py", line 364, in execute_from_command_line
utility.execute()
File "D:\python3.5\lib\site-packages\django\core\management_init.py", line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "D:\python3.5\lib\site-packages\django\core\management\base.py", line 283, in run_from_argv
self.execute(*args, **cmd_options)
File "D:\python3.5\lib\site-packages\django\core\management\base.py", line 327, in execute
self.check()
File "D:\python3.5\lib\site-packages\django\core\management\base.py", line 359, in check
include_deployment_checks=include_deployment_checks,
File "D:\python3.5\lib\site-packages\django\core\management\base.py", line 346, in _run_checks
return checks.run_checks(**kwargs)
File "D:\python3.5\lib\site-packages\django\core\checks\registry.py", line 81, in run_checks
new_errors = check(app_configs=app_configs)
File "D:\python3.5\lib\site-packages\django\core\checks\model_checks.py", line 30, in check_all_models
errors.extend(model.check(**kwargs))
File "D:\python3.5\lib\site-packages\django\db\models\base.py", line 1284, in check
errors.extend(cls.check_fields(**kwargs))
File "D:\python3.5\lib\site-packages\django\db\models\base.py", line 1359, in check_fields
errors.extend(field.check(**kwargs))
File "D:\python3.5\lib\site-packages\django\db\models\fields_init.py", line 913, in check
errors = super(AutoField, self).check(**kwargs)
File "D:\python3.5\lib\site-packages\django\db\models\fields_init.py", line 219, in check
errors.extend(self.check_backend_specific_checks(**kwargs))
File "D:\python3.5\lib\site-packages\django\db\models\fields_init.py", line 322, in check_backend_specific_checks
return connections[db].validation.check_field(self, **kwargs)
File "D:\python3.5\lib\site-packages\django\db\backends\mysql\validation.py", line 49, in check_field
field_type = field.db_type(self.connection)
File "D:\python3.5\lib\site-packages\django\db\models\fields_init.py", line 644, in db_type
return connection.data_types[self.get_internal_type()] % data
File "D:\python3.5\lib\site-packages\django\utils\functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "D:\python3.5\lib\site-packages\django\db\backends\mysql\base.py", line 174, in data_types
if self.features.supports_microsecond_precision:
File "D:\python3.5\lib\site-packages\django\utils\functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "D:\python3.5\lib\site-packages\django\db\backends\mysql\features.py", line 53, in supports_microsecond_precision
return self.connection.mysql_version >= (5, 6, 4) and Database.version_info >= (1, 2, 5)
File "D:\python3.5\lib\site-packages\django\utils\functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance)
File "D:\python3.5\lib\site-packages\django\db\backends\mysql\base.py", line 385, in mysql_version
with self.temporary_connection() as cursor:
File "D:\python3.5\lib\contextlib.py", line 59, in enter
return next(self.gen)
File "D:\python3.5\lib\site-packages\django\db\backends\base\base.py", line 591, in temporary_connection
cursor = self.cursor()
File "D:\python3.5\lib\site-packages\django\db\backends\base\base.py", line 254, in cursor
return self._cursor()
File "D:\python3.5\lib\site-packages\django\db\backends\base\base.py", line 229, in cursor
self.ensure_connection()
File "D:\python3.5\lib\site-packages\django\db\backends\base\base.py", line 213, in ensure_connection
self.connect()
File "D:\python3.5\lib\site-packages\django\db\backends\base\base.py", line 189, in connect
self.connection = self.get_new_connection(conn_params)
File "D:\python3.5\lib\site-packages\django\db\backends\mysql\base.py", line 274, in get_new_connection
conn = Database.connect(**conn_params)
File "D:\python3.5\lib\site-packages\MySQLdb_init.py", line 85, in Connect
from MySQLdb.connections import Connection
File "D:\python3.5\lib\site-packages\pymysql\connections.py", line 20, in
from .constants import CLIENT, COMMAND, CR, FIELD_TYPE, SERVER_STATUS
ImportError: cannot import name 'COMMAND'
具体报错是这个 老哥
from djangoblog.
pip install -Ur requirements.txt 这个操作执行了吗
from djangoblog.
执行了
from djangoblog.
Successfully installed Django-1.11.7 Pillow-4.3.0 certifi-2017.11.5 coverage-4.4.1 django-haystack-2.6.1 idna-2.6 jieba-0.39 markdown2-2.3.5 mistune-0.8.1 pytz-2017.3 requests-2.18.4 six-1.11.0 sqlparse-0.2.4 urllib3-1.22
from djangoblog.
感觉有点像是 PyMySQL 的原因, 你要不然试试新建一个虚拟环境 然后激活之后安装下依赖再试试.
from djangoblog.
嗯嗯 我回去试试 老哥
from djangoblog.
博主 我这也遇到这个问题了,我这个报错信息是:[2018-12-22 14:48:44,952] INFO [DjangoBlog.utils.news:62 utils] cache_decorator set cache:get_current_site key:ed66f18092b6d8ebff620a185728e3fd
Error fetching command 'ping_baidu': (1146, "Table 'djangoblog.django_site' doesn't exist")
Command 'ping_baidu' skipped
Error fetching command 'build_solr_schema': The 'solr' backend requires the installation of 'pysolr'. Please refer to the documentation.
Command 'build_solr_schema' skipped
from djangoblog.
Related Issues (20)
- 作者你好,你的项目存在安全漏洞 HOT 1
- 旧数据库表搭配新版博客兼容性问题,"Unknown column 'blog_article.show_toc' in 'field list'" HOT 1
- windows上可以安装所有的包,但是centos7上 pip install -Ur requirements.txt 报错:Preparing metadata (pyproject.toml) ... error; HOT 1
- 用户头像保存路径问题
- docker部署遇到一些问题 HOT 1
- 部署之后不加载样式文件
- 部署到windows下无法显示样式 HOT 1
- 创建新用户,权限->超级用户权限,失效,无法仅给用户开通添加文章功能 HOT 1
- ModuleNotFoundError HOT 2
- sidebar bug: when not commented in template, this does not render. HOT 2
- 请问现在只能支持8以上的mysql了吗?我5.7无法安装 HOT 4
- css HOT 1
- 如何自定义后端页面,1.0.0.7文件我翻了一圈,没有找到与后端页面相关的html文件 HOT 1
- 求助Debug = False后所有静态文件丢失 HOT 2
- 邮件发送不出去
- 这个会增加插件功能吗?比如主题模板 自定义 HOT 1
- 后台界面视乎有很多js丢失了 HOT 1
- win11 本地部署完成后首页进不去,后台可以进去 HOT 3
- Category define error
- 未来会有前后端分离的版本吗
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from djangoblog.