pycasbin / django-orm-adapter

Django ORM Adapter for PyCasbin
https://github.com/casbin/pycasbin
Apache License 2.0
30 stars 19 forks source link

Status/need help? #1

Closed gerbyzation closed 4 years ago

gerbyzation commented 4 years ago

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

gerbyzation commented 4 years ago

I've done some work necessary to be able to use it in our django app. You can find my work in this fork: https://github.com/actioncy/django-orm-adapter/

It works like a normal django app, so dropping it in INSTALLED_APPS and running migrate is enough to get it going. It supports autosave functionality. There are some things to get done to get it ready for publishing, but let me know if you'd be open to a PR

hsluoyz commented 4 years ago

Hi @gerbyzation sorry for the late response. Can you make a PR from your code?

gerbyzation commented 4 years ago

@hsluoyz done!

I've also run into the problem where several instances don't sync because I didn't realise watchers are needed for that, so exploring if this can be done using postgres listen/notify. Any thoughts on this?

hsluoyz commented 4 years ago

@gerbyzation thanks for your PR! https://github.com/pycasbin/django-orm-adapter/pull/2

I've also run into the problem where several instances don't sync because I didn't realise watchers are needed for that, so exploring if this can be done using postgres listen/notify. Any thoughts on this?

Is this a new issue? If yes, you can open a new GitHub issue, so we can easily track its progress :)

hsluoyz commented 4 years ago

Merged: https://github.com/pycasbin/django-orm-adapter/pull/2