146 Commits

Author SHA1 Message Date
Xevion
820ecf3d74 Improve form field rendering macro to fix login/signup pages
It now looks less "dogshit" as one might say. Still quite dogshit, but acceptable 'dogshit'.
2022-03-29 02:51:47 -05:00
Xevion
862f58153e Test commit for GPG signing verificiation 2022-03-29 02:33:51 -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
4968868d3a Add field rendering Macro for new form validation & add Flask-WTF to Pipfile 2022-03-29 01:30:26 -05:00
Xevion
040e505561 Improve/add error messages to look better visually
- Have not tested everywhere, but should work okayish
2022-03-28 18:54:17 -05:00
Xevion
2973f3ca81 Add profanity filter to comment and post creation
- For Heroku, I worry someone might add a racial slur or something. This isn't perfect, but it's good enough.
2022-03-28 18:29:47 -05:00
Xevion
208b9ba674 Fix new post form length filters not redirecting correctly
I never ran into this error myself, but I think if we did, it's possible it could have caused some kind of infinite loop. Or it would just error because the form is mapped to POST requests only - unless the browser would take the redirect and send the POST request there - but that wouldn't make sense given it's normal purpose.
2022-03-28 18:17:52 -05:00
Xevion
c4b22b8632 Attempt to fix database not creating tables 2022-03-28 18:04:45 -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
3ea945b99f Add psycopg2 to Pipfile for SQLAlchemy Postgresql support
I'm not sure why this isn't installed automatically, but I guess in order to make sure tons of unused dependencies aren't installed on machines that don't need them as well as all the errors that crop up, it wasn't added.

As a user who's simply using it for deployment and didn't need it for local development, I suppose this is what happens.
2022-03-28 17:41:54 -05:00
Xevion
f5f6f13756 Fix Heroku using now deprecated Postgres DB URI for SQLAlchemy 2022-03-28 17:36:21 -05:00
Xevion
6c4b952004 Change all relative imports to standard imports 2022-03-28 17:30:31 -05:00
Xevion
e6db061500 Fix Gunicorn not finding app in app.py due to __name__ check 2022-03-28 17:27:16 -05:00
Xevion
6dfed98ba3 Rename create_app.py to app.py for Gunicorn command 2022-03-28 17:19:11 -05:00
Xevion
e997d4f67e Re-add gunicorn to Pipfile for Heroku deployment 2022-03-28 17:06:20 -05:00
Xevion
2cd2830d60 Update Pipfile.lock 2022-03-28 17:00:40 -05:00
Xevion
ab7641b43e Prepare for Heroku deployment 2022-03-28 16:57:34 -05:00
Xevion
7753ef4488 Fix werkzeug 2.1.0 breaking flask-login with deprecated feature removal 2022-03-28 16:56:55 -05:00
Xevion
28a9dd4a76 Comment out unused pages
+ Slight formatting changes
2022-03-28 13:23:34 -05:00
Xevion
87f6c53987 Reduce online timer span, reduce letter spacing in image banner 2022-03-27 13:49:07 -05:00
Xevion
4c330ccedf Add roadrunner PSD header 2022-03-27 13:21:03 -05:00
Xevion
678dab307f Add quick-edit font-awesome button on user profile
- Available to admins and the user themselves
2022-03-27 13:20:36 -05:00
Xevion
8188ce5484 Fix administrator override 2022-03-27 13:19:10 -05:00
Xevion
4704bd5c6e Switch text-based logo in header to image with RoadRunner 2022-03-27 13:05:24 -05:00
Xevion
4bf568c0fe Add rowdy-hacks project submission image to about 2022-03-27 13:04:49 -05:00
Xevion
83b72ae292 Fix different margin-top on stats/new users in index 2022-03-27 13:04:27 -05:00
Xevion
46960bcadc Add About and Tech Stack sections to README 2022-03-27 12:19:17 -05:00
Xevion
9e4f99a264 Add setup details to README.md 2022-03-27 12:09:25 -05:00
Xevion
b30050df98 Add PSD & Banner 2022-03-27 12:07:08 -05:00
Xevion
8d369932d5 Add statistics to front page 2022-03-27 12:06:50 -05:00
Xevion
39f7425cc9 Add administrative bypass to user properties 2022-03-27 11:51:17 -05:00
Xevion
96b4dba73c Add comment posting form 2022-03-27 11:50:53 -05:00
Xevion
9be4cc3f79 Modify filler footer text to link to about page and static LICENSE.txt, add LICENSE 2022-03-27 11:50:05 -05:00
Xevion
cd590596bc Add post count data to profile, add more precise timestamp titles, remove likes placeholder 2022-03-27 11:21:20 -05:00
Xevion
e01dbf4e16 Fix uneven number of users on Browse page breaking templating 2022-03-27 11:20:33 -05:00
Xevion
c8159c95b3 Fix new users list being ordered in ascending instead of descending (newest first) order 2022-03-27 11:20:11 -05:00
Xevion
0ade256bc9 Add new users list to index 2022-03-27 11:18:46 -05:00
Xevion
b70e39acfa Complete feed view, post view, and post form 2022-03-27 11:02:58 -05:00
Xevion
31f2e1b2e8 Extend faker command to add comments automatically 2022-03-27 11:02:21 -05:00
Xevion
ab0f9b40e0 Comment out unfinished parts of app 2022-03-27 11:01:58 -05:00
Xevion
5b472ab529 Remove backref arguments from model columns 2022-03-27 10:21:22 -05:00
Xevion
4f585448d7 Extend fake shell command for adding fake posts into DB 2022-03-27 10:20:53 -05:00
Xevion
ced2f975ae Develop shell command for instantiating all DB tables fast, import all models 2022-03-27 09:44:54 -05:00
Xevion
5ebbbd1b03 Add Comment model & add relevant relationships between all models 2022-03-27 09:40:23 -05:00
Xevion
23fd613d8f Add login checks for user_edit form page viewing 2022-03-27 09:39:51 -05:00
Xevion
03ed77b328 Improve profile editing styling, add block for <head> manipulation 2022-03-27 09:39:20 -05:00
Xevion
0ce1560468 Add profile name & about-me editing form 2022-03-27 09:38:35 -05:00
Xevion
5134723841 Refactor .content-inner div to wrap all content blocks 2022-03-27 06:55:39 -05:00
Xevion
9b8209841d Move login/signup templates into "auth" folder 2022-03-27 06:08:26 -05:00