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.0.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.0-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_xladmin_enhanced-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d45718d5e5515548622a382c0da6766218289ff701305accf47bb05df74a10d8
MD5 9bddb495f8d0685474fe8df0a74e7963
BLAKE2b-256 ef5d8d2d82fbef112790cc08bef3067b15aea77c9d3f22b1d7a4f16ef85318bc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_xladmin_enhanced-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbfc1fb633926e76aa1b67d40673f10372a45b39225d6c9928aa529853a42aab
MD5 73aaa7601c443deff9c65a89a367f39f
BLAKE2b-256 c04202830cd9cea335598a56e62996028ac891c2ae4132fb02bcbe7f086ac600

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