Code Monkey home page Code Monkey logo

Comments (3)

frgmt avatar frgmt commented on June 12, 2024

@Ali-Javanmardi Thanks for the info. Can you tell us specifically the cases you have tried?

from django-fernet-encrypted-fields.

Ali-Javanmardi avatar Ali-Javanmardi commented on June 12, 2024

@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.

Ali-Javanmardi avatar Ali-Javanmardi commented on June 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.