Commit Graph

10 Commits

Author SHA1 Message Date
Xevion
fd35443a9a Revamp all model relationships to use backref attributes properly
- Fix new post form not including a CSRF token
- Removed some old leftover comment profanity validation, changed to validate_on_submit() for first time
- Include rest of pluralize macro work with this commit + used pluralizing logic where there once was none
2022-03-29 18:12:07 -05:00
Xevion
bad80cf483 Add force login method for development, add CSRF tokens to login & signup forms 2022-03-29 16:35:26 -05:00
Xevion
f41b83a15f Apply new form validation features to New Post form
- Use TextAreaField instead of StringField on forms.NewPostForm
- Fixed incorrect remember_me field and redirect in login
- Added placeholder usage to field rendering macro
2022-03-29 15:13:00 -05:00
Xevion
3b5307ab47 Migrate app to use WTForms for auth form validation
- Not finished yet, major styling breakage in this commit
- Also encapsulated GET & POST requests of /login and /signup routes into one route.
2022-03-29 02:30:19 -05:00
Xevion
2e8688f59b Revamp all form submissions with Flask-WTF forms
- Rename blueprint route 'main.user' to 'main.view_user' for clarity
- Rename 'forms.py' to 'route_forms.py'
2022-03-29 02:00:43 -05:00
Xevion
2d014628e4 Fix circular imports issue by separating SQLAlchemy db instance into database.py 2022-03-28 17:57:52 -05:00
Xevion
6c4b952004 Change all relative imports to standard imports 2022-03-28 17:30:31 -05:00
Xevion
6dfed98ba3 Rename create_app.py to app.py for Gunicorn command 2022-03-28 17:19:11 -05:00
Seligmann
128fd23bfc Added has_bio and bio to db to enable more functionality on profile pages 2022-03-27 01:07:06 -05:00
Xevion
fcac137046 Refactor and merge Zach's work into main 2022-03-26 21:50:07 -05:00