docs | |
---|---|
tests | |
package | |
compatibility |
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!