cost 411 ms
Gramex - DBAuth 僅當用戶處於活動狀態時登錄

[英]Gramex - DBAuth Login only when user is active

我正在嘗試實現一種方法,在讓用戶登錄之前,我可以從user數據庫中檢查is_active列的值。因此,除了密碼檢查之外,我還想檢查 is_active 列是否為True ,然后才檢查用戶必須能夠登錄,否則我想限制登錄並顯示“用戶處於非活動狀態”的錯誤(即使密碼正確)。 我瀏覽了 Gramex 文檔, ...

“pip install nlg”在多個環境/平台上不斷出現相同的錯誤

[英]'pip install nlg' keeps erroring out with the same error on multiple environments/platforms

任何人都可以成功地“pip install nlg”嗎? 當我這樣做時,我得到了下面的圖片。 下面還摘錄了錯誤消息的一些內容。 我已經從 windows 10 pc 和我的 macbook 嘗試過。 上圖來自github codespace 他們的默認圖片。 期望 pip 成功安裝包 nlg 而不是 ...

Gramex "$YAMLPATH" 崩潰失敗

[英]Gramex "$YAMLPATH" failing crashing

工作場景當使用以下gramex.yaml運行 gramex 時:schedule: create-job-startup: thread: true function: > logging.critical("hello world") startup: ...

2022-09-20 14:03:55   1   9    gramex  
Gramex 服務 Redis 緩存有時會拋出錯誤“TypeError: can't pickle _thread.RLock objects”

[英]Gramex service Redis Cache throws an error sometimes "TypeError: can't pickle _thread.RLock objects"

我正在使用 Gramex Redis 緩存服務,但有時會遇到以下隨機發生的錯誤,它會在 gramex 控制台中引發錯誤,您能幫忙嗎? 這是gramex控制台的錯誤日志錯誤日志 - 這是我的 gramex.yaml 配置集: gramex.yaml 配置 - 這是“狀態” python funct ...

在 yaml 文件中,變量的原始值在重用配置時變得松散

[英]In yaml file, variable's original value is getting loose while reusing the configuration

重現步驟: 這是我的 gramextest 腳本,在我重用配置的 Yaml 文件中 變量“ my_pwd ”中有$符號,並且在字符串中可用$符號的情況下處理 valueerror 我添加$$而不是$ (並且 gramex -> config.py -> _substitute_var ...

2022-07-08 17:59:31   1   13    yaml / gramex  
與 pymongo for gramex 的本地 CosmosDB 連接

[英]Local CosmosDB connectivity with pymongo for gramex

無法使用 gramex mongo 適配器連接 cosmos db。 從 python,我們可以使用以下方式連接到本地 cosmosDB 實例:# -------------------------------------- import pymongo uri = r"mongodb://loca ...

2022-02-17 08:54:40   1   32    gramex  
401 invalid token / handler.xsrf_token 與cookie不匹配

[英]401 invalid token / handler.xsrf_token does not match with the cookie

我們被困在 dbauth 模塊中: 症狀:注冊時創建了用戶,但是: 服務器不發送郵件收到的響應是401 Invalid Token 診斷步驟: 從零開始從頭開始創建一個新的 Gramex 項目填充模板register.html <form method="POST" action="" au ...

2021-08-13 07:40:44   1   82    gramex  
在 Gramex 中跨 API 保存數據

[英]Saving data accross API's in Gramex

我在多個表單處理程序中調用相同的數據庫查詢,我想訪問一次數據進行處理並將其存儲以在多個表單處理程序中使用它們。 ...

2021-06-04 07:05:56   1   18    gramex  
Gramex SMTP Email 問題

[英]Gramex SMTP Email Issue

我必須將 email 從 python function 發送給具有動態內容的多個用戶。 我在 gramex.yaml 中給出了 email 詳細信息,如下所示 在我的 python function 我實現了郵件功能如下: 當我執行上述 function 時,我收到以下錯誤: TimeoutEr ...

Gramex 未檢測到 SCSS

[英]SCSS is not detected by Gramex

即使添加了處理程序( ui.sass ), gramex也不會檢測到 SCSS 文件。 ...

2021-06-01 11:28:48   1   19    sass / gramex  
面對“Uncaught SyntaxError: Unexpected token '{'”

[英]Facing "Uncaught SyntaxError: Unexpected token '{'"

在本地使用 Gramex,嘗試訪問主頁。 收到此錯誤。 截圖如下。 在此處輸入圖像描述在此處輸入圖像描述桌面登錄:使用此錯誤忽略缺少的處理程序 DBAuth ...

2021-05-25 11:50:45   1   29    gramex  
無法訪問 Red Hat Linux 服務器中的 UI 組件

[英]Unable to access UI components in Red Hat Linux Server

我無法訪問 gramex 中的 UI 組件。 我嘗試了所有我知道的東西。 我正在使用紅帽 Linux 服務器。 我在日志中收到以下警告: 禁止“/home/gramex/.local/lib/python3.7/site-packages/gramex/apps/ui/node_modules/bo ...

通過 conda 安裝后 Gramex 不運行

[英]Gramex does not run after installing via conda

Gramex 安裝說明說:conda create -y --name gramex python=3.7 # Create a new environment conda activate gramex # Act ...

2021-01-25 05:08:20   2   21    conda / gramex  

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM