advanced-rest-api-lecture-codes
advanced-rest-api-lecture-codes copied to clipboard
Start and end codes for the lectures of our Advanced REST APIs with Flask and Python course
It seems Flask-Uploads got outdated. Here is a fix for the error `ImportError: cannot import name 'secure_filename' from 'werkzeug'`: https://stackoverflow.com/questions/61628503/flask-uploads-importerror-cannot-import-name-secure-filename In `flask_uploads.py` Change ```py from werkzeug import secure_filename, FileStorage ```...
Added type hinting for None type return as well, as PyCharm highlights it as well: -> Union[None, FileStorage]