seed_dev_data: print dev logins with verified emails

Open Beginner friendly
#195 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
django, python

Research direction

Start at handle in apps/devdata/management/commands/seed_dev_data.py to see the count summary it prints today, then follow into seed in apps/devdata/seed.py (around line 153) to see how accounts and players are created and where Faker supplies the email. Check ACCOUNT_EMAIL_VERIFICATION in config/settings.py to confirm what makes an account login-ready, then set a fixed documented dev password and mark the seeded emails verified for the first few accounts. Done looks like running the command under DJANGO_DEBUG and seeing the sample block with working email and Player code pairs.

Written by the indexing model from the issue text.

Description

area:infra type:chore

Why
To work on the app locally, a frontend developer needs to log in. seed_dev_data creates players with accounts, but the accounts' emails come from Faker and the command prints only counts. There is no way to sign in without reading the factories or signing up and finding the verification link in the Celery worker log.

What
Make the command print a few dev logins at the end, and make sure they work:

  • Each login has a verified email address and a linked Player, so sign-in works at once (email verification is mandatory).
  • Use a fixed, documented dev password. This is for DJANGO_DEBUG only, as the command already requires.
  • Print the email and the Player code for the first few accounts.
Dev logins (password: <dev password>):
  [email protected]   P-4RWN-8TQ2
  [email protected]       P-9KXM-2VQ7

Optional: a --verified flag if you don't want this by default.

Context

Dominant language
Python
Stars
0
Forks
1
Avg merge
1h 7m
Merged PRs (30d)
206

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openpickleball/backend

All issues in openpickleball/backend

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.