Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

forms attribute doesn't have RegisterForm?

When i try to run the app.py and view it in the browser when i enter the @app.route('/register') i am getting an attribute error saying forms does not have RegisterForm. I've reviewed the videos and can't find a solution, any help much appreciated!

Snapshot of workspace-https://w.trhou.se/h904ey0q9l

1 Answer

In forms.py you have class Register instead of RegisterForm. Simply rename the class or refer to the existing one as forms.Register