Coder Social home page Coder Social logo

pycasbin / django-orm-adapter Goto Github PK

View Code? Open in Web Editor NEW
26.0 3.0 16.0 59 KB

Django ORM Adapter for PyCasbin

Home Page: https://github.com/casbin/pycasbin

License: Apache License 2.0

Python 100.00%
casbin adapter storage-driver django orm django-orm access-control authorization pycasbin

django-orm-adapter's People

Contributors

abichinger avatar bustdot avatar gerbyzation avatar hsluoyz avatar inzgiba avatar leeqvip avatar nekotoxin avatar selflocking avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-orm-adapter's Issues

initialize_enforcer with other DB_ALIAS

if django database config in backend/settings.py like:

DATABASES = {
'default': {...},
'acount': {...},
}

and we want use account db to store casbin_rule, HOW?

Casbin lib incompatibility

Hello everybody, I faced this error today after using latest versions of libraries:

File "/Users/f.eremeev/saas/saas_core_v2/source/.venv/lib/python3.10/site-packages/casbin_adapter/enforcer.py", line 34, in _load
    super().__init__(model, adapter, enable_log)
TypeError: CoreEnforcer.__init__() takes from 1 to 3 positional arguments but 4 were given

here is the list of libs:

casbin                            1.16.10
casbin-django-orm-adapter         1.0.0

at first I used 1.16.11, then downgraded to 1.16.10 which is freezed in requirements, but no luck

Status/need help?

Hi,

This looks great, we're looking to adopt this for our project. Wondering what the status of this is? Anything you need help with?

Best,
Gerben

`semantic-release-pypi@^3.0.0` uses the `pyproject.toml` based build system interface, if a `pyproject.toml` file exists

This project uses setup.py to build and pyproject.toml only for linting.

This will cause the release workflow to fail with the following error:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/node/18.18.2/x64/lib/node_modules/semantic-release-pypi/dist/py/set_version.py", line 24, in <module>
    toml['project']['version'] = args.version
  File "/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/tomlkit/container.py", line 613, in __getitem__
    raise NonExistentKey(key)
tomlkit.exceptions.NonExistentKey: 'Key "project" does not exist.'

The PyPA recommends to migrate away from setup.py (Build System Interface)

Related:

Projects that are also affected:

CASBIN_LOG_ENABLED not working

Adding

CASBIN_LOG_ENABLED = False

does not work. Looking into the code the setting is not passed to the constructor. That seems to be a bug right?

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.