DEV Community

Discussion on: How to create REST API using Flask

Collapse
 
vcavanna profile image
vcavanna

I've been working on implementing this same project: but I can't get it to work on Python 3. Something about the db package being used? These were the notes that I left for my Python 3 version:
1) flask.ext.restful needs to be replaced with flask_restful.
2) You still need to "pip install db"; this package isn't usable in python 3 (it uses prints without parentheses)
3) There's an issue with naming files 'resource.py' like the tutorial asks you to name one file; and in the reference later it's called 'resources.py' (which is what I eventually went with)