-1

我有一个 django 项目,它在未上传时工作正常我已使用以下命令将其上传到 gitlab:

1. git clone ssh://git@gitlab****dcms-api.git
2. git checkout dcms_sso
3.git add .

然后我从 git lab 中获取了相同的代码:

1. git clone ssh://git@gitlab****dcms-api.git
2. git checkout dcms_sso

刚刚更改了清单文件中的应用程序名称。当我尝试运行它时会引发以下错误:

File "/home/vcap/deps/1/python/lib/python3.5/site-packages/django/db/backends/base/base.py", line 216, in ensure_connection
self.connect()
ERR   File "/home/vcap/deps/1/python/lib/python3.5/site-packages/django/db/backends/base/base.py", line 194, in connect
ERR     self.connection = self.get_new_connection(conn_params)
ERR   File "/home/vcap/deps/1/python/lib/python3.5/site-packages/sql_server/pyodbc/base.py", line 307, in get_new_connection
  ERR     timeout=timeout)
ERR pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)")
ERR The above exception was the direct cause of the following exception:
ERR Traceback (most recent call last):
ERR   File "/home/vcap/deps/1/python/lib/python3.5/site-packages/django/core/handlers/exception.py", line 34, in inner
ERR     response = get_response(request)
ERR   File "/home/vcap/deps/1/python/lib/python3.5/site-packages/django/utils/deprecation.py", line 93, in __call__
ERR     response = self.process_response(request, response)
ERR   File "/home/vcap/deps/1/python/lib/python3.5/site-packages/django/contrib/sessions/middleware.py", line 58, in process_response
ERR     request.session.save()
ERR   File "/home/vcap/deps/1/python/lib/python3.5/site-packages/django/contrib/sessions/backends/db.py", line 81, in save
ERR     return self.create()
ERR   File "/home/vcap/deps/1/python/lib/python3.5/site-packages/django/contrib/sessions/backends/db.py", line 51, in create
 ERR     self._session_key = self._get_new_session_key()

请让我知道是否要上传更多日志或是否应该上传我的 backend.py

4

1 回答 1

0

将 .profile 文件上传到 cloudfoundry 时出错。复制 .profile 文件后工作

于 2019-11-21T14:40:42.110 回答