Closed GvS666 closed 3 years ago
Questions:
%
in it?pp_receiver_encrypted
is created because that's importantI use django-pgcrypto-fields 2.6.0. PGCRYPTO_KEY in development was a simple string, but for production, I generated a complex one with my password manager and it indeed has '%i' in it! I'll check next week if it works after removing %. Thank you!
It works now, thanks again!
I've used django-pgcrypto-fields for about a week now without a problem and then I created a migration to add an encrypted field:
I've done a similar one with hashed fields before and it worked, but this one fails with:
Local variables from Sentry:
Model field looks like this:
pp_receiver_encrypted = EmailPGPSymmetricKeyField(_('This is account (email)'), blank=True, null=True)
I have no idea how to debug or fix it. It worked fine on my local env. I'm using PostgreSQL 11.11 (through pgbouncer) on Ubuntu 20 server. I've set
PGCRYPTO_KEY
in settings. Any help will be greatly appreciated!