๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ


Python/Flask

(6)
[Python] Flask ์˜ค๋ฅ˜๋“ค [Flask] ImportError: cannot import name 'json' from 'itsdangerous' https://velog.io/@___pepper/Flask-ImportError-cannot-import-name-json-from-itsdangerous [Flask] ImportError: cannot import name 'json' from 'itsdangerous' itsdangerous import error in flask velog.io
[Python] Flask - api, sqlalchemy ์‚ฌ์šฉ๋ฐฉ๋ฒ• Install Flask-RESTful with pip pip install flask-restful api.py from flask import Flask from flask_restful import reqparse, abort, Api, Resource app = Flask(__name__) api = Api(app) TODOS = { 'todo1': {'task': 'build an API'}, 'todo2': {'task': '?????'}, 'todo3': {'task': 'profit!'}, } def abort_if_todo_doesnt_exist(todo_id): if todo_id not in TODOS: abort(404, message="Todo {} doesn't exist".fo..
[Flask] ํŒŒ์ผ ์—…๋กœ๋“œ
[Python] Flask - Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec. ์“ฐ๋Š”๋ฐ ์˜ค๋ฅ˜ ๋ฐœ์ƒ ใ… ใ…  Failed to load module script: The server responded with a non-JavaScript MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec. import mimetypes mimetypes.add_type('application/javascript', '.mjs') stackoverflow.com/questions/56587108/flask-how-to-use-es6-modules/62236927#62236927 Flask: How to use ES6 modules? I have a working Flask app t..
[Python/Flask] ์™ธ๋ถ€ Front๋กœ Redirect ํ•  ๋•Œ ๋ฐ์ดํ„ฐ ์ „์†ก
OAuth ๊ตฌ๊ธ€ ์ธ์ฆ ๊ณผ์ • ์ฐธ๊ณ  ์‚ฌ์ดํŠธ Sign In/Authorize Revoke access developers.google.com/identity/protocols/oauth2/web-server#prerequisites Using OAuth 2.0 for Web Server Applications | Google ID ํ”Œ๋žซํผ This document explains how web server applications use Google API Client Libraries or Google OAuth 2.0 endpoints to implement OAuth 2.0 authorization to access Google APIs. OAuth 2.0 allows users to share specific data with an applic..