Skip to main content

Enhanced Django xAdmin - A modern admin interface for Django

Project description

Django XLAdmin Enhanced

A modern, enhanced version of Django XAdmin - a powerful admin interface for Django applications.

Features

  • Modern UI: Clean and responsive admin interface
  • Plugin System: Extensible plugin architecture
  • Advanced Filtering: Powerful filtering and search capabilities
  • Import/Export: Built-in data import/export functionality
  • Permissions: Fine-grained permission control
  • Customizable: Highly customizable admin interface
  • Multi-language: Internationalization support
  • Dashboard: Customizable dashboard with widgets

Installation

pip install django-xladmin-enhanced

Quick Start

  1. Add xladmin to your INSTALLED_APPS:
INSTALLED_APPS = [
    # ...
    'xladmin',
    'crispy_forms',
    'import_export',
    'reversion',
    # ...
]
  1. Replace Django's default admin in your main urls.py:
import xladmin
xladmin.autodiscover()

from xladmin.plugins import xversion
xversion.register_models()

urlpatterns = [
    path('xladmin/', xladmin.site.urls),
    # ...
]
  1. Create an admin configuration file adminx.py in your app:
import xladmin
from .models import YourModel

class YourModelAdmin(object):
    list_display = ['field1', 'field2', 'field3']
    search_fields = ['field1', 'field2']
    list_filter = ['field3']

xladmin.site.register(YourModel, YourModelAdmin)
  1. Run migrations:
python manage.py makemigrations
python manage.py migrate

Configuration

Settings

Add these settings to your Django settings file:

# Crispy Forms
CRISPY_TEMPLATE_PACK = 'bootstrap3'

# XLAdmin Settings
XLADMIN_TITLE = 'Your Admin Title'
XLADMIN_FOOTER_TITLE = 'Your Footer'

Plugins

XLAdmin Enhanced comes with several built-in plugins:

  • Actions: Batch actions for model instances
  • Filters: Advanced filtering options
  • Bookmarks: Save and manage bookmarks
  • Export: Export data in various formats
  • Import: Import data from files
  • Charts: Display charts and graphs
  • Images: Image handling and thumbnails
  • RelField: Related field enhancements
  • Refresh: Auto-refresh functionality
  • Details: Enhanced detail views
  • Editable: Inline editing capabilities
  • Relate: Related object management
  • Portal: Dashboard portal widgets
  • QuickForm: Quick form creation
  • Wizard: Multi-step form wizard
  • Ajax: AJAX functionality
  • Aggregation: Data aggregation tools
  • Mobile: Mobile-responsive interface
  • Passwords: Password management
  • Multiselect: Multiple selection widgets
  • Themes: Theme customization
  • Language: Multi-language support
  • QuickFilter: Quick filtering options
  • Sortable: Drag-and-drop sorting
  • Topnav: Top navigation enhancements
  • Portal: Dashboard customization

Advanced Usage

Custom Plugins

You can create custom plugins by extending the base plugin classes:

from xladmin.plugins import BaseAdminPlugin

class MyCustomPlugin(BaseAdminPlugin):
    def init_request(self, *args, **kwargs):
        # Plugin initialization logic
        pass

Theming

Customize the admin interface appearance:

class MyModelAdmin(object):
    # Custom CSS and JS
    class Media:
        css = {
            'all': ('my_admin.css',)
        }
        js = ('my_admin.js',)

Requirements

  • Python >= 3.8
  • Django >= 3.2
  • django-crispy-forms >= 1.14.0
  • django-import-export >= 2.8.0
  • django-reversion >= 5.0.0

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

If you encounter any issues or have questions, please file an issue on the GitHub repository.

Changelog

Version 1.0.0

  • Initial release
  • Enhanced UI and UX
  • Modern plugin system
  • Improved performance
  • Better documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_xladmin_enhanced-1.0.3.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_xladmin_enhanced-1.0.3-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file django_xladmin_enhanced-1.0.3.tar.gz.

File metadata

  • Download URL: django_xladmin_enhanced-1.0.3.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for django_xladmin_enhanced-1.0.3.tar.gz
Algorithm Hash digest
SHA256 168a65d7c6e8f0846754e9d9f576fa148a5ea022b2f091588bb2818148fdb225
MD5 1f9328132d38a6bf7916d6398af13534
BLAKE2b-256 8eaf55c5a781e5fb010ecc01bb02966c8636d76bc48569a5b31b6cbff4e5df07

See more details on using hashes here.

File details

Details for the file django_xladmin_enhanced-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for django_xladmin_enhanced-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 28a7da2dabcb14f9184427eddaa93900e71183e6875a5604239847477bc1553e
MD5 9af6358531806e962937421541003487
BLAKE2b-256 41b6cc005d3d7f31d94b564dce58e1a96d21a33208c6e487b21a9f30d041c839

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page