Skip to content
#

Boilerplate

A boilerplate code is a piece of code that can be reused without significant changes. When using a verbose language, the developer must write a lot only to accomplish minor functionality. Such code is called boilerplate.

Here are 10,113 public repositories matching this topic...

charleshan
charleshan commented Apr 25, 2020

What happened?

Error while deploying to production: django.core.exceptions.ImproperlyConfigured: Set the SENDGRID_GENERATE_MESSAGE_ID environment variable

It looks like non-essential env config was added without defaults.

What should've happened instead?

Deploy without errors

Solution

Add defaults to Sendgrid config.
Change the following:

ANYMAIL = {
    "SENDGRID_
Wikipedia
Wikipedia