Package Django pour custom admin avec graphs
Project description
Personnalisation Admin Django
Package pour moderniser Django Admin.
🚀 Django Custom Admin Pro
Django Custom Admin Pro est un package léger et moderne conçu pour transformer l'interface d'administration par défaut de Django en un véritable tableau de bord analytique. Fini le design de 2010 : place à Bootstrap 5, FontAwesome et des graphiques interactifs avec Chart.js.
✨ Points Forts
- Design Moderne : Intégration complète de Bootstrap 5 pour une interface responsive et élégante.
- Dashboards Dynamiques : Configurez vos graphiques (Bar, Line, Pie) directement depuis l'interface admin.
- Performance : Chargement asynchrone des données via Chart.js pour ne pas ralentir l'expérience utilisateur.
- Simple & Léger : Zéro configuration complexe. Installez, ajoutez à vos apps, et profitez.
🛠️ Installation
Installez le package via pip (une fois publié ou en local) :
pip install django-custom-admin-pro
Configuration
Dans votre fichier settings.py, ajoutez l'application au-dessus de l'admin de Django :
INSTALLED_APPS = [
'custom_admin', # Doit être AVANT django.contrib.admin
'django.contrib.admin',
'django.contrib.auth',
# ... autres apps
]
Lancez ensuite les migrations pour créer les tables de configuration des graphiques :
python manage.py migrate
📊 Utilisation : Ajouter un Graphique
- Rendez-vous dans la section Custom Admin de votre interface d'administration.
- Créez un nouvel objet Admin Graph.
- Remplissez les informations :
- App Label : ex:
auth - Model Name : ex:
User - Type : Choisissez entre Bar, Pie, ou Line.
- Enregistrez. Votre graphique apparaît instantanément sur votre Dashboard !
🎨 Personnalisation
Vous pouvez surcharger les couleurs principales directement dans votre settings.py :
| Variable | Description | Valeur par défaut |
|---|---|---|
CUSTOM_ADMIN_THEME |
Couleur de la barre de navigation | #343a40 (Dark) |
CUSTOM_ADMIN_SIDEBAR |
Couleur de la sidebar | #ffffff (White) |
🏗️ Stack Technique
- Backend : Python & Django
- Frontend : Bootstrap 5, FontAwesome 6, Chart.js
- Packaging : Hatch
- Test Environment : Virtualenv
🤝 Contribution
Les contributions sont les bienvenues ! Pour toute suggestion ou bug, n'hésitez pas à ouvrir une Issue ou une Pull Request sur le dépôt GitHub.
Note : Ce projet a été développé avec passion dans le cadre d'un projet académique à l'IIT, visant à améliorer l'expérience utilisateur des administrateurs Django.
📄 Licence
Distribué sous la licence MIT. Voir LICENSE pour plus d'informations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file personnalisation_admin_django-0.1.0.tar.gz.
File metadata
- Download URL: personnalisation_admin_django-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.12.5 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87c17f1d1e893ea4ea0dc18a6020363f90feccc00ed725987ea8deab989c1695
|
|
| MD5 |
0fbb2468a7547e1e752e7c844be30a27
|
|
| BLAKE2b-256 |
fe80fecf4ef4138b78e7329a4cef98ab19d030aeb709796c59a191be93e1107a
|
File details
Details for the file personnalisation_admin_django-0.1.0-py3-none-any.whl.
File metadata
- Download URL: personnalisation_admin_django-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.3 cpython/3.12.5 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13ffe52e16b045c380d73b6298f1123ce0d3c024f4f9b2699b5d42805c56767d
|
|
| MD5 |
f84128d6d18c7b167c20b9985fe2e402
|
|
| BLAKE2b-256 |
e36eec9807a96cfd48e06f4cabe14610f71693e6d84470ec645e3d83af92735a
|