Commit Graph

23 Commits

Author SHA1 Message Date
3925f11a02 Fix last_ip setter, use X-Forwarded-For header via proxy
default to remote_addr still
2024-10-08 16:06:50 -05:00
3d5e175db5 Move all root app files into 'runnerspace' folder 2023-05-10 19:05:25 -05:00
ae29927730 Remove all trace of Heroku, replace with 'deployment' or Railway 2023-05-10 01:30:15 -05:00
d095f9849a Setup .env local environment loading 2023-05-10 00:53:34 -05:00
Xevion
531c60d163 Remove spaCy references and generate new Pipfile.lock 2022-03-30 16:00:08 -05:00
Xevion
3a0c1690d3 Remove runtime spacy model downloading 2022-03-30 02:39:51 -05:00
Xevion
3ab3fd5476 Ensure Spacy NLP model is downloaded by Heroku in production 2022-03-30 02:10:20 -05:00
Xevion
6b4d5acfb9 Move highly-static routes in separate blueprint 2022-03-29 23:34:31 -05:00
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
db560b7c41 Add pluralizing macro filter to templating engine
- Only some plural edits are included here - some are locked behind commits coming soon™️
- Also made index template statistics variables read better
- Fixed spelling error in CSRF Error template rendering (hadn't hit the page yet)
2022-03-29 18:07:39 -05:00
Xevion
311f061b10 Implement CSRF protection & error page 2022-03-29 16:25:30 -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
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
fcac137046 Refactor and merge Zach's work into main 2022-03-26 21:50:07 -05:00
Xevion
19e582f72e Add template control flow to display login & sign or username
- Also commit the relevant TTF font for the myspace logo in the previous commit
2022-03-26 20:14:03 -05:00
Xevion
e3d4a75ec7 Add essential Runnerspace styling & front page routes [empty] 2022-03-26 19:05:26 -05:00
Xevion
0b140fc9da Initial Commit 2022-03-26 16:38:52 -05:00