django-kong-admin

A reusable Django App to manage a Kong service (http://getkong.org)


Keywords
django-kong-admin
License
BSD-3-Clause
Install
pip install django-kong-admin==0.4.0

Documentation

django-kong-admin

docs Documentation Status
tests
CircleCI Build Status Coverage Status Scrutinizer Status
package PyPI Package latest release PyPI Package monthly downloads PyPI Wheel
compatibility Supported python versions Supported imlementations

A reusable Django App to manage a Kong service (https://getkong.org)

=== HOWTO ===

pip install django-kong-admin

In your Django Settings:

INSTALLED_APPS = (
    ....
    'jsonfield2',  # Used in the models - https://github.com/DarioGT/django-jsonfield2
    'django_ace',  # Used in the 'show_config' view - https://github.com/bradleyayers/django-ace
    'kong_admin'
    ....
)

# Tweak to your own needs
KONG_ADMIN_URL = 'http://localhost:8001'
KONG_ADMIN_SIMULATOR = False  # python-kong includes a simulator for testing purposes. You usually don't need that.

In your base url patterns:

urlpatterns = [
    ....
    url(r'^admin/', include(admin.site.urls)),
    ....
    # Optionally, add the following url, which is a view that displays the current kong config:
    url(r'^showconfig/', 'kong_admin.views.show_config')
    ....
]

Run default Django management commands to get things working

python manage.py migrate
python manage.py collectstatic
...

Then you can go to your Django admin site, and the Kong Admin entities will be manageable.

I plan to add more documentation in the near future! If you want to contribute to the library, be my guest!