老师,怎么样把项目MxOnline放进来的?
来源:14-2 uwsgi安装和启动, nginx的虚拟主机配置
大发多一点
2017-09-01
2回答
-
慕仙2510365
2017-11-13
用winscp软件,超级方便
00 -
大发多一点
提问者
2017-09-01
我用的是centos6.9
如果我直接把MxOnline从windows复制到centos下,运行出现如下错误:
(mxonline) [ltf@localhost MxOnline]$ python manage.py runserver 0.0.0.0:8000
Performing system checks...Unhandled exception in thread started by <function wrapper at 0x7f0b5a698500>
Traceback (most recent call last):
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 116, in inner_run
self.check(display_num_errors=True)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/core/management/base.py", line 426, in check
include_deployment_checks=include_deployment_checks,
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/core/checks/registry.py", line 75, in run_checks
new_errors = check(app_configs=app_configs)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/core/checks/model_checks.py", line 28, in check_all_models
errors.extend(model.check(**kwargs))
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/models/base.py", line 1178, in check
errors.extend(cls._check_fields(**kwargs))
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/models/base.py", line 1255, in _check_fields
errors.extend(field.check(**kwargs))
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 925, in check
errors = super(AutoField, self).check(**kwargs)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 208, in check
errors.extend(self._check_backend_specific_checks(**kwargs))
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 317, in _check_backend_specific_checks
return connections[db].validation.check_field(self, **kwargs)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/mysql/validation.py", line 18, in check_field
field_type = field.db_type(connection)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 625, in db_type
return connection.data_types[self.get_internal_type()] % data
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/__init__.py", line 36, in __getattr__
return getattr(connections[DEFAULT_DB_ALIAS], item)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/utils/functional.py", line 33, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 184, in data_types
if self.features.supports_microsecond_precision:
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/utils/functional.py", line 33, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/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 "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/utils/functional.py", line 33, in __get__
res = instance.__dict__[self.name] = self.func(instance)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 359, in mysql_version
with self.temporary_connection():
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/contextlib.py", line 17, in __enter__
return self.gen.next()
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/base/base.py", line 564, in temporary_connection
cursor = self.cursor()
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/base/base.py", line 231, in cursor
cursor = self.make_debug_cursor(self._cursor())
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/base/base.py", line 204, in _cursor
self.ensure_connection()
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/utils.py", line 95, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/base/base.py", line 199, in ensure_connection
self.connect()
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/base/base.py", line 171, in connect
self.connection = self.get_new_connection(conn_params)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 264, in get_new_connection
conn = Database.connect(**conn_params)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/MySQLdb/__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/home/ltf/anaconda2/envs/mxonline/lib/python2.7/site-packages/MySQLdb/connections.py", line 193, in __init__
super(Connection, self).__init__(*args, **kwargs2)
django.db.utils.OperationalError: (1045, "Access denied for user 'root'@'127.0.0.1' (using password: YES)")012017-09-04
相似问题