[英]Gramex - DBAuth Login only when user is active
我正在嘗試實現一種方法,在讓用戶登錄之前,我可以從user數據庫中檢查is_active列的值。因此,除了密碼檢查之外,我還想檢查 is_active 列是否為True ,然后才檢查用戶必須能夠登錄,否則我想限制登錄並顯示“用戶處於非活動狀態”的錯誤(即使密碼正確)。 我瀏覽了 Gramex 文檔, ...
[英]Gramex - DBAuth Login only when user is active
我正在嘗試實現一種方法,在讓用戶登錄之前,我可以從user數據庫中檢查is_active列的值。因此,除了密碼檢查之外,我還想檢查 is_active 列是否為True ,然后才檢查用戶必須能夠登錄,否則我想限制登錄並顯示“用戶處於非活動狀態”的錯誤(即使密碼正確)。 我瀏覽了 Gramex 文檔, ...
[英]'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 而不是 ...
[英]Can Gramex scheduler take dynamic schedule values from a file or database?
嘗試按計划運行一些 CLI,例如create-job-once-a-day: hours: <DYNAMIC VALUE> minutes: <DYNAMIC VALUE> thread: true function: > logging.cr ...
[英]Gramex "$YAMLPATH" failing crashing
工作場景當使用以下gramex.yaml運行 gramex 時:schedule: create-job-startup: thread: true function: > logging.critical("hello world") startup: ...
[英]How to apply date/time sorting on a column which has date/time as string in G1 table in gramex
我在 UI 中有一個 G1 表(Gramex),其中包含日期和時間列,但作為字符串。 當用戶在內置排序選項的幫助下對各個列進行排序時,它會將數據排序為字符串而不是日期。 ...
[英]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 ...
[英]In yaml file, variable's original value is getting loose while reusing the configuration
重現步驟: 這是我的 gramextest 腳本,在我重用配置的 Yaml 文件中 變量“ my_pwd ”中有$符號,並且在字符串中可用$符號的情況下處理 valueerror 我添加$$而不是$ (並且 gramex -> config.py -> _substitute_var ...
[英]How do we pass SSL arguments to MySQL in Gramex's FormHandler?
我正在使用此gramex.yaml配置連接到 OTP 的MySQL 數據庫:otp: url: 'mysql+pymysql://$USER:$PASS@$MYSQL_SERVER/$DB' table: $TABLE 當 Gramex 啟動時,它報告一個異常: 這個答案建議傳遞 ...
[英]How to implement third party authentication in gramex
我正在嘗試構建一個簡單的 gramex 應用程序。 我需要從 linkedin outlook、Github 和 gmail 授權用戶。 請分享一些代碼片段。 ...
[英]How to create or alter a DB schema dynamically (at run time) using Gramex FormHandler
我希望能夠(在運行時)使用 Gramex 的 FormHandler 微服務在特定事件(例如單擊按鈕)上動態創建或更改數據庫模式。 ...
[英]Local CosmosDB connectivity with pymongo for gramex
無法使用 gramex mongo 適配器連接 cosmos db。 從 python,我們可以使用以下方式連接到本地 cosmosDB 實例:# -------------------------------------- import pymongo uri = r"mongodb://loca ...
[英]Can't detect gramex.yaml file when using Conda for Gramex
我正在嘗試在 Conda 提示符下運行 gramex,但它拋出了一個錯誤——沒有 gramex.yaml。 見https://learn.gramener.com/guide/ 我應該怎么辦? ...
[英]401 invalid token / handler.xsrf_token does not match with the cookie
我們被困在 dbauth 模塊中: 症狀:注冊時創建了用戶,但是: 服務器不發送郵件收到的響應是401 Invalid Token 診斷步驟: 從零開始從頭開始創建一個新的 Gramex 項目填充模板register.html <form method="POST" action="" au ...
[英]Saving data accross API's in Gramex
我在多個表單處理程序中調用相同的數據庫查詢,我想訪問一次數據進行處理並將其存儲以在多個表單處理程序中使用它們。 ...
[英]Gramex SMTP Email Issue
我必須將 email 從 python function 發送給具有動態內容的多個用戶。 我在 gramex.yaml 中給出了 email 詳細信息,如下所示 在我的 python function 我實現了郵件功能如下: 當我執行上述 function 時,我收到以下錯誤: TimeoutEr ...
[英]Facing "Uncaught SyntaxError: Unexpected token '{'"
在本地使用 Gramex,嘗試訪問主頁。 收到此錯誤。 截圖如下。 在此處輸入圖像描述在此處輸入圖像描述桌面登錄:使用此錯誤忽略缺少的處理程序 DBAuth ...
[英]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 ...
[英]Gramex redis cache set memory error in azure instance
I am unable to set memory through config for redis azure instance in gramex It gives this error: redis.exceptions.ResponseError: unknown command CONF ...
[英]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 ...