Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force rules reload #52

Open
muflone opened this issue Dec 28, 2018 · 2 comments
Open

Force rules reload #52

muflone opened this issue Dec 28, 2018 · 2 comments
Assignees

Comments

@muflone
Copy link

muflone commented Dec 28, 2018

A route to force the rules reload would be useful in order to avoid to restart the web server.

This would be useful for shared hosting or to allow clients to configure their own access list without any knowledge about how a Django App work.

@sztamas sztamas self-assigned this Dec 31, 2018
@sztamas
Copy link
Contributor

sztamas commented Dec 31, 2018

Hi @muflone!

There is a reload_rules view already that you can use right away.

https://github.com/muccg/django-iprestrict/blob/master/iprestrict/urls.py#L13
https://github.com/muccg/django-iprestrict/blob/master/iprestrict/views.py#L36

The view isn't mentioned in the docs though.
I will update the docs soonish.

@sztamas
Copy link
Contributor

sztamas commented Aug 26, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants