Comments (3)
@Ali-Javanmardi Thanks for the info. Can you tell us specifically the cases you have tried?
from django-fernet-encrypted-fields.
@frgmt Thanks to your early response,
As I mentioned before I did not anything special.
Just created an empty Django application (no project) and tried to use django-fernet-encrypted-fields to encryp my data.
As I found I can use EncryptedCharField with no problem, but when I try to use EncryptedIntegerField and try to test it by tox I will receive this error:
File "/home/__/dev/try_encrypted_fields/.tox/py310-dj40/lib/python3.10/site-packages/django/db/backends/base/operations.py", line 673, in integer_field_range return self.integer_field_ranges[internal_type] KeyError: 'TextField' ERROR: InvocationError for command /home/__/dev/try_encrypted_fields/.tox/py310-dj40/bin/python make_migrations.py (exited with code 1) _______________________________________________________________________________ summary _______________________________________________________________________________ ERROR: py310-dj40: commands failed
so I made a test project here to simulate this error.
If you try my test project you will find an EncryptedCharField that works and tox show no error by that.
But if you un-comment the other field with EncryptedIntegerField and try tox again you should receive error same as me.
I hope this helps to clear problem.
Thanks again,
from django-fernet-encrypted-fields.
@frgmt just as a hint please note that error occurs when it tries to create migration file.
So I think that is the reason you had no error in your test before.
I think in your test you did not makemigrations
from django-fernet-encrypted-fields.
Related Issues (9)
- Feature Request: Add support for rotating the salt HOT 1
- Error saving model in django admin HOT 4
- Reasons for not leaving SECRET_KEY used as default HOT 1
- Joining Jazzband HOT 12
- Issues with lookups against encrypted fields HOT 2
- Updating Django's SECRET_KEY makes encrypted fields inaccessible HOT 7
- Adding typings to codebase HOT 5
- Implement Jazzband guidelines for django-fernet-encrypted-fields HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-fernet-encrypted-fields.