![](/img/trans.png)
[英]'NoneType' object has no attribute 'image_tag'
我正在嘗試運行我的項目,但它顯示存在操作錯誤,即無類型沒有屬性 image_tag。 下面是我的編碼 誰能幫我快速解決這個錯誤? ...
[英]'NoneType' object has no attribute 'image_tag'
我正在嘗試運行我的項目,但它顯示存在操作錯誤,即無類型沒有屬性 image_tag。 下面是我的編碼 誰能幫我快速解決這個錯誤? ...
[英]sqlite3.OperationalError: near "<": syntax error: Issue with sql in python formatting?
我正在為我作為 Comp Sci 專業的最后一門課程做一個軟件工程項目,當我嘗試在將我的方法與我們的方法合並之前對方法進行數據/單元測試時,我對這個特定的錯誤感到困惑隊友GUI。 任何能幫助我解決這個問題的人都是我的英雄 ...
[英]django.db.utils.OperationalError: no such table: MainApp_user when i try to create superuser
我制作了一些 Web 應用程序,幾乎在開發過程的最后,我決定自定義用戶模型以制作包含許多其他信息的個人資料頁面。 最近我發現了一個視頻,其中解釋了 django 文檔中的示例,我制作了與之前相同的代碼,但起初我刪除了我的文件 db.sqlite3,現在當我嘗試創建超級用戶時,我總是會發現下一個錯誤: ...
[英]psycopg2.OperationalError: could not translate host name "<address>" to address: Temporary failure in name resolution
我瀏覽了關於 SO 的類似帖子,它們似乎專門針對使用 Docker 環境,並沒有太大幫助。 我們的有點不同,我們運行托管在Azure App Service上的 Airflow 的 docker 映像,但它連接到托管的 Azure Database for PostgreSQL 服務器(版本 11) ...
[英]PostgreSQL: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) invalid sslmode value: "fastapi"
您好,我正在嘗試 PostgreSQL 但出現此錯誤: 我正在學習教程 ( https://www.tutlinks.com/fastapi-with-postgresql-crud-async/ ) 我的 main.py 是: 和錯誤信息: 我在 pgAdmin4 中創建了數據庫“fastapi ...
[英]How do I resolve the following error in Django: “OperationalError: foreign key mismatch”
每當我嘗試保存到 SQLite 數據庫中的表時,都會收到以下錯誤: 外鍵不匹配 - “procedure_tbl”引用“filename_tbl” 在models.py中,這些是錯誤所指的表: 可以從表和查詢集中讀取數據,如下所示返回正確的數據: 用於正確寫入/更新到 Procedure ...
[英]Creating sqlite db in Python 3 with constructed f string and receiving: sqlite3.OperationalError: near “(”: syntax error
我正在嘗試使用 python 3 中構造的 f 字符串創建一個 sqlite3 db 表,但是我收到以下錯誤: sqlite3.OperationalError: near "(": syntax error 我曾希望我不需要在這里詢問語法錯誤,但我一直在 stackoverflow 以及一般在 ...
[英]Django - OperationalError after deleting migration files
在我系統的早期,在我知道如何使用 django 的內置用戶 model 之前,我有自己的 class 命名為 myUser,我打算將其用於相同目的。 我最終刪除了這個,而是使用了 django 的用戶 model。 有一段時間一切都很好。 然后我嘗試將所有自定義模型的 id 更改為 UUIDFiel ...
[英]django.db.utils.OperationalError: no such column: home_post.assign_to_id
我想將任務分配給對帖子發表評論的用戶之一。 但是當我在 post_detail.html 上嘗試 go 時,會發生錯誤,即 /home/ 處的操作錯誤沒有這樣的列:home_post.assign_to_id PS:我已經完成了 python manage.py makemigrations 和 ...
[英]sqlite3.OperationalError: unable to open database file - error occurs after a certain while
工具: 樹莓派 3B 樹莓派 BME280 蟒蛇3 燒瓶 Sqlite3 錯誤代碼: 在 Raspbian 上工作並希望將我的傳感器數據存儲在 sqlite3 數據庫中。 不知何故出現以下錯誤代碼:“sqlite3.OperationalError:無法打開數據庫文 ...
[英]OperationalError: no such module: fts4 ? Also No Extensions Available in SQLite in Python
我正在嘗試使用模糊匹配器,但是當我運行代碼時出現以下錯誤: 另外,我嘗試通過使用代碼將最新的 sqlite.dll 文件放在C:\ProgramData\Anaconda3\DLLs中來加載擴展 但沒有擴展顯示並返回以下代碼, ...
[英]reading sql database with sqlalchemy: OperationalError [Errno 111] Connection refused
這工作正常 如果我用 IP 替換localhost它不會 OperationalError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on '192.168.0.7' ([Errno 11 ...
[英]sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError) ([Errno 13] Permission denied)")
我正在嘗試使用以下方法連接到 mysql 它在本地工作,當在我們的 linux 盒子之一中部署代碼時,我得到了 sqlalchemy.exc.OperationalError: (pymysql.err.OperationalError)(2003,“無法連接到‘xxx.xx.xx.xxx’上的 ...
[英]pymysql.err.OperationalError - Lost connection to MySQL server during query
我正在使用 Python 腳本將記錄插入 MySQL 數據庫表。 腳本失敗並顯示以下錯誤消息。 MySQL 版本為 8.0.17 , Python 版本為 3.6.5 (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL ...
[英]Errno 1 Operation not permitted. But file has full permissions?
做一個項目,我重新設計了一個 Sqlite 數據庫。 之前使用pickle訪問,讀取和寫入文件,在同一目錄中,甚至在程序文件中的其他更多根目錄中都沒有問題。 但現在重建后,我拉 Errno1 告訴我 所以我像大家推薦的那樣檢查了權限,我對文件有完全的權限。 無法弄清楚我創建了一個 test.tx ...
[英]OperationalError: Attempt to Write A ReadOnly Database on Google Cloud Application
最近,我一直在嘗試部署一個交互式 Google App Engine,它寫入 SQLite 數據庫,在本地運行應用程序時工作正常,但是通過服務器運行它時,我收到錯誤: OperationalError: attempt to write a readonly database 我嘗試更改我的.db ...
[英]Why do I get OperationalError: no such column
我寫了下面的代碼: 我收到警告信息: 我在哪里犯錯? ...
[英]How to solve an admin operational problem in django?
我正在研究一個 django 項目(網站)我在 2 個月前開始編碼,在使用 django 項目時我遇到了一個問題。 實際上,我正在學習如何制作網站,當我登錄到管理員時它工作正常但是當我添加產品時它顯示 請在這件事上給予我幫助這是那些文件模型.py: 意見.py: 項目 urls.py: 產品.ur ...
[英]OperationalError: no such module: fts4
您好,我嘗試運行 fuzzymatcher 代碼並彈出以下錯誤: 有什么建議么? 提前致謝編輯:我已經嘗試從網站下載 sqlite zip 並將其保存在 DLL 文件中,但它仍然不起作用。 我必須以某種方式激活它嗎? 我使用的是 Anaconda3 64 位。 謝謝 ...
[英]Get most recent related objects for all objects
假設我有以下 model:from django import models class Post(models.Model): user = models.ForeignKey(to=User, on_delete=CASCADE) created = models.Dateti ...