How tylerrottmann/fantasyfootballanalyzer works
This is a Django fantasy-football analysis application. The visible user workflow is a browser request routed to the home or signup view; signup uses a custom form and user model. The repository also contains player, roster, team, and matchup data-loading/feature-building scripts, but the excerpts do not establish their full source-to-database relationships. The leagues app is referenced by project configuration but is absent from the supplied tree, so it is not modeled here.
Main entry points: views.py Home and signup views · FantasyFootballAnalyzer/urls.py Project routes · settings.py Django settings · analyzer/urls.py Account routes
Components 19
Web application
- Django settings
FantasyFootballAnalyzer/settings.py - Project routes
FantasyFootballAnalyzer/urls.py - Account routes
analyzer/urls.py - Home and signup views
analyzer/views.py - Home page
templates/home.html - Signup page
templates/registration/signup.html - Base layout
templates/base.html
User accounts
- Custom user forms
analyzer/forms.py - Custom user
analyzer/models.py
Fantasy data processing
- Player data loader
scripts/load_player_data.py - Player stats loader
scripts/load_player_stats.py - Ownership loader
scripts/load_player_ownership_percentage.py - Fantasy roster loader
scripts/load_fantasy_rosters.py - Team data loader
scripts/load_team_data.py - Advanced team loader
scripts/load_advanced_team_data.py - Team feature builder
scripts/build_team_features.py - Matchup feature builder
scripts/build_matchup_features.py
Other components
- Browser user
- PostgreSQL
Connections 11
- Django settings → PostgreSQL: configures
FantasyFootballAnalyzer/settings.py - Django settings → Project routes: selects routes
FantasyFootballAnalyzer/settings.py - Project routes → Home and signup views: routes home
FantasyFootballAnalyzer/urls.py - Project routes → Account routes: includes
FantasyFootballAnalyzer/urls.py - Account routes → Home and signup views: routes signup
analyzer/urls.py - Browser user → Project routes
- Home and signup views → Home page: renders
analyzer/views.py - Home and signup views → Custom user forms: uses form
analyzer/views.py - Home and signup views → Signup page: selects template
analyzer/views.py - Custom user forms → Custom user: defines fields
analyzer/forms.py - Team feature builder → PostgreSQL: reads and writes
scripts/build_team_features.py