Now Live at https://fantasy-trade-machine.fly.dev/trade_app!
Resources:
- Django Tutorials: https://docs.djangoproject.com/en/5.0/intro/tutorial04/
- Field/logic ideas from my ruby gem: https://github.com/usborn116/ruby_espn_fantasy_library/tree/main
- JSON Response for ESPN API Data: https://fantasy.espn.com/apis/v3/games/fba/seasons/2024/segments/0/leagues/780758162?view=mTeam&view=mRoster&view=mMatchup&view=mSettings&view=mStandings
- ESPN API: https://github.com/cwendt94/espn-api/tree/master
- Model field reference: https://docs.djangoproject.com/en/5.0/ref/models/fields/#model-field-types
- Django Database stuff: https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-DATABASES
- Python String interpolation: https://www.programiz.com/python-programming/string-interpolation#google_vignette
- Running Flask apps: https://stackoverflow.com/questions/31252791/flask-importerror-no-module-named-flask
- Creating PSQL Database: https://stackoverflow.com/questions/13321005/postgresql-not-creating-db-with-createdb-as-superuser-yet-not-outputting-erro
- Optional Foreign Keys for models: https://stackoverflow.com/questions/6619984/how-to-make-the-foreign-key-field-optional-in-django-model
- Fixing Module_not_found error: https://www.freecodecamp.org/news/module-not-found-error-in-python-solved/#:~:text=Here%20are%20a%20few%20reasons,numpy%20as%20numpys%20during%20import
- Django Migrations: https://docs.djangoproject.com/en/5.0/topics/migrations/
- Django get_or_create method: https://www.letscodemore.com/blog/django-get-or-create/#:~:text=django%20get_or_create()%20is%20a,it%20will%20create%20the%20object.
- Django Queryset reference: https://docs.djangoproject.com/en/5.0/ref/models/querysets/#get-or-create
- Partial templates: https://stackoverflow.com/questions/1070398/how-to-set-a-value-of-a-variable-inside-a-template-code
- Clearing Django database: https://stackoverflow.com/questions/6485106/what-is-the-easiest-way-to-clear-a-database-from-the-cli-with-manage-py-in-djang
- Registering custom template filters: https://stackoverflow.com/questions/8000022/django-template-how-to-look-up-a-dictionary-value-with-a-variable AND https://reintech.io/blog/writing-custom-template-tags-in-django
- Django built in template tags: https://docs.djangoproject.com/en/5.0/ref/templates/builtins/#include
- Get_context_data() method for class views: https://reintech.io/blog/working-with-class-based-views-in-django-tutorial
- Template Tags: https://docs.djangoproject.com/en/5.0/ref/templates/builtins/
- Django Models Reference: https://docs.djangoproject.com/en/5.0/ref/models/instances/
- Django update_or_create() method: https://docs.djangoproject.com/en/5.0/ref/models/querysets/#update-or-create
- Django static files: https://docs.djangoproject.com/en/5.0/howto/static-files/
- Order_by in queries: https://docs.djangoproject.com/en/5.0/ref/models/expressions/#using-f-to-sort-null-values
Tools for Deployment:
- Django environ: https://django-environ.readthedocs.io/en/latest/quickstart.html
- Fly.io deploy for existing apps: https://fly.io/docs/django/getting-started/existing/
- Docs for dj-database-url: https://pypi.org/project/dj-database-url/
- Deploying static files: https://docs.djangoproject.com/en/5.0/howto/static-files/deployment/
- Docs on Whitenoise: https://whitenoise.readthedocs.io/en/stable/django.html#check-its-working
- Django Deploy checklist: https://docs.djangoproject.com/en/5.0/howto/deployment/checklist/
- Django Settings doc: https://docs.djangoproject.com/en/5.0/ref/settings/#std-setting-STATIC_ROOT
- Psycopg docs: https://www.psycopg.org/psycopg3/docs/basic/usage.html#module-usage
- Django and Databases: https://docs.djangoproject.com/en/5.0/ref/databases/#postgresql-notes
- Fly.io forum on staticfiles: https://community.fly.io/t/how-to-serve-static-files-from-django/5485
- Django CSRF considerations: https://docs.djangoproject.com/en/1.11/ref/csrf/#rejected-requests