Skip to content
This repository has been archived by the owner on Jun 3, 2019. It is now read-only.

Error message when starting #4

Open
marcmmx opened this issue Feb 6, 2017 · 8 comments
Open

Error message when starting #4

marcmmx opened this issue Feb 6, 2017 · 8 comments

Comments

@marcmmx
Copy link

marcmmx commented Feb 6, 2017

Hi I get a strange error message when I am starting the app.

File "/Users/marco/Documents/Development/web/bp_quant2/app/views/user.py", line 16, in
@userbp.route('/signup', methods=['GET', 'POST'])
TypeError: route() got an unexpected keyword argument 'methods'

@MaxHalford
Copy link
Owner

Hello,

Could you please tell me what version of Python and of Flask are you using?

Cheers.

@marcmmx
Copy link
Author

marcmmx commented Feb 6, 2017

Hi, I am using from the requirements Flask==0.10.1 and Python 3.6.0.

@MaxHalford
Copy link
Owner

Mmm weird. I just create a fresh virtualenv with the specs you mentioned and everything was fine. Are you sure you haven't done something wrong?

@marcmmx
Copy link
Author

marcmmx commented Feb 6, 2017

Actually I am not fully sure, but haven't changed that much. I added another side and adapted the main.py in views with an additional route. Do I have to touch the app/init.py as well?

@MaxHalford
Copy link
Owner

Well I'm not too sure of what you did but it worked for me without changing anything. You should be fine if you had a route in app/views/main.py :/

@marcmmx
Copy link
Author

marcmmx commented Feb 6, 2017

That's also my understanding. Probably I will create another project from ground again.

@MaxHalford
Copy link
Owner

Tell me how it goes :)

@marcmmx
Copy link
Author

marcmmx commented Feb 6, 2017

The plate is working. Adding a site is working :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants