georgemarshall / django-cryptography

Easily encrypt data in Django
https://django-cryptography.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
371 stars 70 forks source link

'Settings' object has no attribute 'CRYPTOGRAPHY_BACKEND' #60

Open lemaadi opened 2 years ago

lemaadi commented 2 years ago

Hi there,

Thank you for making this great package. Currently we are trying to deploy a django project to heroku, the build succeeded but we get this error 'Settings' object has no attribute 'CRYPTOGRAPHY_BACKEND' at the migration step.

We tried to reproduce this issue in local dev environment but without any success. Any suggestions or tips ?

Thank you in advance

lemaadi commented 2 years ago

Update :

This issue is happening when adding SENTRY_DSN as environment variable to heroku app

matteius commented 1 year ago

I'm also having a similar issue to this, need to call django.setup() but that is raising this error.