django-admino

by erdem

Admino is a django package that provides a REST API for admin endpoints.

210 Stars 23 Forks Last release: Not found MIT License 94 Commits 1 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Django Admino (Alpha)

Admino is a django package that provides a REST API for admin endpoints. It allows you to customize django admin panel.

http://admino.io

Problem?

Django admin is good solution for development tests and i/o, but django admin needs to be more customizable and extendable.

Solution:

if you want to implement a custom widget or ui for django admin, you may need a REST API to handle records.

Admino added to new api views to django admin genericly. You don't need to change default admin files. Every API endpoint will generate your "ModelAdmin" configurations.

EXAMPLE:

Visible Books list page url: /admin/books/book/?isvisible_exact=1

Visible Books api url: /admin/api/books/book/?isvisible_exact=1

Book detail page url: /admin/books/book/1/

Book detail api url: /admin/api/books/book/1/

Install

pip install django-admino

settings.py

INSTALLED_APPS = [
    'admino',

'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

'books',

]

urls.py

from django.contrib import admin
import admino

admin.site = admino.site.activated(admin.site)

urlpatterns = [ url(r'^admin/', admin.site.urls), ]

Add custom admin Mixin class:

settings.py

ADMINO_MIXIN_CLASS = "app.module.AdminMixinClass"

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.