Django Youknowwho Gui is a Django app to give gui for rule-engine app. It also exposes an api where rules can be get in json format.
-
Download and install manually
git clone https://github.com/paytm/django-youknowho-app.git cd django-youknowho-app python setup.py install
-
Add "youknowwhogui" to your INSTALLED_APPS like this
INSTALLED_APPS = ( ... 'youknowwhogui', )
-
To create models, run migrate like
python manage.py migrate
-
Include the urls of the app in your root url by
url(r'^youknowwhogui/', include('youknowwhogui.urls', namespace='youknowwhogui')),
-
To get the list of all rules, in json format, use
/rules
api. Assuming that your app is running at port 8000, curl call can becurl 'http://localhost:8000/youknowwhogui/rules'