Flask-Web-App-Tutorial
Flask-Web-App-Tutorial copied to clipboard
Methods = ['GET','POST'] issue
Im having issues below. It's about when I type the ,methods=['GET", 'POST'] behind @auth.route (pic.1). The program cannot run and the website occur like this (pic.2). Have anyone met this issue before?
First of all, where you have imported methods from the crypt, methods is a typo, it should be method without s,
and it seems like you have not used it also, there is no need for that if you don't need hashing, it is used for hashing,
what it seems to me, correct me if I am wrong, are you trying to use crypt methods in route()'s methods which are two different things, you can try removing it.
You don't have to import methods from crypt, if you don't need it,
And yes crypt can't be used in Windows, as it is because crypt is a Unix Specific Service.
You can use other methods for hashing, like passlib etc.
If you want to know more about the error you can go to this https://stackoverflow.com/questions/19877867/using-the-crypt-module-in-windows
Remove the crypt model from the import section which is causing this error