Skip to content

Change DJANGO_DEFAULT_FROM_EMAIL value#263

Merged
jjnesbitt merged 1 commit intodandi:masterfrom
kabilar:email
Feb 12, 2026
Merged

Change DJANGO_DEFAULT_FROM_EMAIL value#263
jjnesbitt merged 1 commit intodandi:masterfrom
kabilar:email

Conversation

@kabilar
Copy link
Member

@kabilar kabilar commented Feb 8, 2026

I am not entirely sure if this is the complete fix, but I am hoping this addresses dandi/dandi-archive#2018.

@kabilar kabilar requested review from jjnesbitt and waxlamp February 8, 2026 05:01
@kabilar kabilar self-assigned this Feb 8, 2026
@kabilar kabilar changed the title Change DJANGO_DEFAULT_FROM_EMAIL Change DJANGO_DEFAULT_FROM_EMAIL value Feb 8, 2026
Copy link
Member

@waxlamp waxlamp left a comment

Choose a reason for hiding this comment

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

I don't think this will solve the problem of the weird Heroku email addresses being shown to users, but putting that aside, I think this is the correct email address to use (rather than the api.dandiarchive.org domain).

@jjnesbitt, if you don't object, let's go ahead and merge this.

DJANGO_CORS_ALLOWED_ORIGINS = join(",", ["https://sandbox.dandiarchive.org", "https://neurosift.app"])
DJANGO_CORS_ALLOWED_ORIGIN_REGEXES = join(",", ["^https:\\/\\/[0-9a-z\\-]+--sandbox-dandiarchive-org\\.netlify\\.app$"])
DJANGO_DEFAULT_FROM_EMAIL = "admin@api.sandbox.dandiarchive.org"
DJANGO_DEFAULT_FROM_EMAIL = "info@dandiarchive.org"
Copy link
Member

Choose a reason for hiding this comment

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

Should this not be info@api.sandbox.dandiarchive.org?

Copy link
Member

Choose a reason for hiding this comment

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

Or rather, info@sandbox.dandiarchive.org

Copy link
Member

Choose a reason for hiding this comment

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

It should probably be info@dandiarchive.org, since that email will reach the admin team (via ImprovMX).

I can probably set up mailbox forwarding for sandbox.dandiarchive.org, but that would be a new thing for the project.

Copy link
Member

Choose a reason for hiding this comment

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

In that case, I'd say we should probably update our email templates, to distinguish prod from sandbox. At the moment, the only way to differentiate them is the email address sent from.

Copy link
Member

Choose a reason for hiding this comment

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

@jjnesbitt
Copy link
Member

I agree with @waxlamp that I don't believe this will close the linked issue. I've reworded the description so that it won't automatically close.

Copy link
Member

@jjnesbitt jjnesbitt left a comment

Choose a reason for hiding this comment

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

I agree this won't resolve the linked issue, but I don't object to it.

@jjnesbitt jjnesbitt merged commit a738e88 into dandi:master Feb 12, 2026
1 check passed
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.

3 participants