Flask - secret_key (1)
ยท
๐Ÿ Python
https://flask.palletsprojects.com/en/2.3.x/api/#flask.Flask.secret_key API — Flask Documentation (2.3.x) API This part of the documentation covers all the interfaces of Flask. For parts where Flask depends on external libraries, we document the most important right here and provide links to the canonical documentation. Application Object class flask.Flask(imp flask.palletsprojects.com app.secret..
Flask Error : AttributeError: 'Flask' object has no attribute 'login_manager'
ยท
๐Ÿ Python
## Error File "/opt/homebrew/lib/python3.11/site-packages/flask_login/utils.py", line 372, in _get_user current_app.login_manager._load_user() ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Flask' object has no attribute 'login_manager' Flask __init__.py์— LoginManaer ๋ช…์‹œ ๋ฌธ์ œ # in __init__.py create_app() # flask-login ์ ์šฉ login_manager = LoginManager() login_manager.login_view = 'auth.sign_in' login_ma..
[PEP 703] Making the Global Interpreter Lock Optional in CPython
ยท
๐Ÿ Python
https://peps.python.org/pep-0703/ [PEP 703 – Making the Global Interpreter Lock Optional in CPython | peps.python.org In CPython, the global interpreter lock protects against corruption of internal interpreter states when multiple threads concurrently access or modify Python objects. For example, if multiple threads concurrently modify the same list, the GIL ensures that peps.python.org](https:/..
[DigitalOcean] Slack_bolt deploy runtime error
ยท
๐Ÿ Python
https://www.digitalocean.com/community/questions/deployment-is-always-in-a-building-state Deployment is always in a building state | DigitalOcean www.digitalocean.com - slack_bolt๋ฅผ ์‚ฌ์šฉํ•ด ๋งŒ๋“  App์„ DigitalOcean App์— deployํ•˜๋Š” ๊ณผ์ •์—์„œ ์ƒ๊ธฐ๋Š” ์˜ค๋ฅ˜ ๋ฐœ์ƒ ์›์ธ Build ๋‹จ๊ณ„์— app์„ ์‹คํ–‰์‹œ์ผœ bolt app์ด ๊ณ„์† ์‹คํ–‰๋˜์–ด deploy ๋‹จ๊ณ„๋กœ ๊ฐ€์ง€ ๋ชปํ•จ. ํ•ด๊ฒฐ 1. `package.json` "scripts": { "start": "node ./src/app.js", "build": "npm install" } 2. run_command ..
On the amortized complexity of approximate counting
ยท
๐Ÿ Python
https://arxiv.org/abs/2211.03917 On the amortized complexity of approximate counting (์ƒ๊ฐ ๋ณต์žก๋„ ๊ทผ์‚ฌ ๊ณ„์‚ฐ) Abstract ๊ฐ’ n๊นŒ์ง€์˜ ์นด์šดํ„ฐ๋ฅผ ๋‹จ์ˆœํžˆ ์ €์žฅํ•˜๋Š” ๊ฒƒ์€ โ„ฆ(log n)๋น„ํŠธ์˜ ๋ฉ”๋ชจ๋ฆฌ๊ฐ€ ํ•„์š”. Nelson๊ณผ Yu [NY22]๋Š” Morris์˜ ์—ฐ๊ตฌ [Mor78]๋ฅผ ๋”ฐ๋ผ, ์ฟผ๋ฆฌ ์‘๋‹ต์ด (1+ฯต)-๊ทผ์‚ฌ๊ฐ’์ด๋ฉฐ ํ™•๋ฅ ์ ์œผ๋กœ ์ตœ์†Œ 1-δ๋ฅผ ๋งŒ์กฑํ•œ๋‹ค๋ฉด O(log(logn)+log(log(1/δ)+log(1/ฯต))๋น„ํŠธ๋งŒ์ด ํ•„์š”ํ•˜๋ฉฐ, ์‚ฌ์‹ค ์ด ๊ฒฝ๊ณ„๋Š” ์ตœ์ ์ด๋‹ค. Morris์˜ ์›๋ž˜ ์—ฐ๊ตฌ ๋™๊ธฐ์™€ ํ˜„๋Œ€ ์‘์šฉ ํ”„๋กœ๊ทธ๋žจ์€ ํ•˜๋‚˜์˜ ์นด์šดํ„ฐ๋ฅผ ์œ ์ง€ํ•˜๋Š” ๊ฒƒ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ k๊ฐœ์˜ ์นด์šดํ„ฐ๋ฅผ ์œ ์ง€ํ•ด์•ผํ•œ๋‹ค. ์ด๋กœ ์ธํ•ด ๋‹ค์Œ ์งˆ๋ฌธ์ด ์ƒ๊ธด๋‹ค. k๊ฐœ์˜ ์นด์šดํ„ฐ๋ฅผ ์œ ์ง€ํ•˜๋ฉด์„œ ..
[digitalOcean] digitalOcean + Slack ChatBot
ยท
๐Ÿ Python
๋”๋ณด๊ธฐ https://www.digitalocean.com/community/tech-talks/building-your-first-slackbot-with-python Building Your First Slackbot With Python | DigitalOcean www.digitalocean.com
[Copilot] GitHub Copilot vs GitHub Copilot Nightly
ยท
๐Ÿ Python
https://github.com/orgs/community/discussions/7074 Difference between Github Copilot and Github Copilot Nightly. · community · Discussion #7074 Hi, while I was searching for Copilot on Visual Studio Code I noticed that there are two versions of it, the normal one, and a "Nightly" version. My question is, what's the difference between these... github.com Nightly A nightly build is a neutral build..
Could not initialize webview: Error: Could not register service worker: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..}
ยท
๐Ÿ Python
https://github.com/microsoft/vscode/issues/128649 Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The doc Does this issue occur when all extensions are disabled?: Yes/No VS Code Version: 1.58.0 2d23c42 x64 OS Version: mac os 10.15.7 Steps to Reproduce: install extension Draw.io Integration open xx.drawio github.com VSCODE S..
๋‹คํ–ˆ๋‹ค
'๐Ÿ Python' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก (3 Page)