📅  最后修改于: 2023-12-03 15:15:50.758000             🧑  作者: Mango
Django-cruds-adminlte is a simple Django application to provide a CRUD (Create, Read, Update, Delete) interface using the AdminLTE template. This allows you to quickly develop an administration interface for your Django project.
To install django-cruds-adminlte, run the command:
pip install django-cruds-adminlte
# settings.py
INSTALLED_APPS = [
...
'cruds_adminlte',
...
]
# admin.py
from django.contrib import admin
from cruds_adminlte import cruds as cruds_admin
from .models import MyModel
class MyModelAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'created_at', 'updated_at')
cruds_admin.site.register(MyModel, MyModelAdmin)
Django-cruds-adminlte is a useful and user-friendly tool for creating a quick administration interface for your Django project. Its integration with the AdminLTE template makes it easy to customize and add your own personal touch to your project. Try it out today!