Skip to content

Database driven organizers page #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 3, 2024
Merged

Conversation

davidfischer
Copy link
Member

@davidfischer davidfischer commented May 30, 2024

  • Adds the first migration to the app
  • Adds an Organizer model that will be displayed on the organizer page
  • This PR does not yet display images but it would be great if profile photos came from Meetup profiles.
  • Should these organizers have a brief description?

Replaces #155.
Fixes #64.

Screenshot

Screenshot from 2024-05-30 23-03-54

Deploying

This PR adds our first migration needed for the site. As with any kind of migration, after this is merged, somebody (probably me) will need to run this migration on the production database.

Jer-Pha and others added 2 commits May 28, 2024 13:12
- Add code migration
- Fix linting
- Remove inactive organizers
@Jer-Pha
Copy link
Contributor

Jer-Pha commented May 30, 2024

Here's a CSV to easily copy/paste the names and Meetup URLs in /admin/. I don't know who is considered active so I sorted the list based on "Last visited" on Meetup.

pythonsd-organizers.csv

Remove organizer description for now
- Add a docker compose environment with Redis and Postgres
- Add django-storages for storing media files in S3/R2
@davidfischer
Copy link
Member Author

I created a separate PR (#158) that merges into this one. That PR sets up Docker Compose which I really wanted in order to test this PR with Postgres and a custom storage backend. The custom media storage backend is what I'm planning to use to store organizer photos in something like S3 (or more specifically Cloudflare R2). This PR I think is ready to review/merge and it could be merged without merging the other.

- Set both `MEDIA_URL` and `AWS_S3_CUSTOM_DOMAIN`.
  This ensures that both using `MEDIA_URL` or
  using `file.url` work well
Copy link
Contributor

@Jer-Pha Jer-Pha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@davidfischer
Copy link
Member Author

Looks good.

Thanks for the review. I asked in discord but I'll probably merge #158 today or tomorrow and deploy this. I don't want it to sit around too long.

@Jer-Pha
Copy link
Contributor

Jer-Pha commented Jun 3, 2024

I looked over the changes in #158 but don't know enough about the non-Django stuff, which is why I only mentioned it in #154. I started my Docker journey this weekend, so I'll hopefully be more helpful with future PRs.

…se-media-storage

Use docker compose for debugging production
@davidfischer davidfischer merged commit e1a3dd6 into main Jun 3, 2024
1 check passed
@davidfischer davidfischer deleted the davidfischer/Jer-Pha-organizers branch June 3, 2024 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an organizers page
2 participants