|
|
@@ -0,0 +1,67 @@
|
|
|
+# ⚠️ Problème de Compatibilité Python 3.14
|
|
|
+
|
|
|
+## 🐛 Problème Identifié
|
|
|
+
|
|
|
+**Erreur** : `'super' object has no attribute 'dicts' and no __dict__ for setting new attributes`
|
|
|
+
|
|
|
+**Cause** : `django-import-export` n'est pas encore compatible avec Python 3.14
|
|
|
+
|
|
|
+## 🔧 Solution Appliquée
|
|
|
+
|
|
|
+### Temporairement désactivé :
|
|
|
+- ❌ `django-import-export` dans requirements.txt
|
|
|
+- ❌ `'import_export'` dans INSTALLED_APPS
|
|
|
+- ❌ `ImportExportModelAdmin` dans blog/admin.py
|
|
|
+
|
|
|
+### Utilise maintenant :
|
|
|
+- ✅ `admin.ModelAdmin` standard
|
|
|
+- ✅ TinyMCE via `formfield_overrides`
|
|
|
+
|
|
|
+## 📊 Impact
|
|
|
+
|
|
|
+### Fonctionnalités perdues :
|
|
|
+- ❌ Import/Export Excel/CSV depuis l'admin Django
|
|
|
+
|
|
|
+### Fonctionnalités conservées :
|
|
|
+- ✅ Création/édition d'articles
|
|
|
+- ✅ Éditeur TinyMCE
|
|
|
+- ✅ Toutes les autres fonctions admin
|
|
|
+
|
|
|
+## 🔄 Solutions Futures
|
|
|
+
|
|
|
+### Option 1 : Attendre la mise à jour
|
|
|
+Suivre : https://github.com/django-import-export/django-import-export/issues
|
|
|
+
|
|
|
+### Option 2 : Downgrade Python
|
|
|
+```bash
|
|
|
+# Utiliser Python 3.11 ou 3.12 au lieu de 3.14
|
|
|
+python3.12 -m venv venv
|
|
|
+```
|
|
|
+
|
|
|
+### Option 3 : Alternative manuelle
|
|
|
+Utiliser des scripts Python pour importer/exporter :
|
|
|
+```python
|
|
|
+import pandas as pd
|
|
|
+from blog.models import Blog
|
|
|
+
|
|
|
+# Export
|
|
|
+blogs = Blog.objects.all().values()
|
|
|
+df = pd.DataFrame(blogs)
|
|
|
+df.to_csv('export.csv')
|
|
|
+
|
|
|
+# Import
|
|
|
+df = pd.read_csv('import.csv')
|
|
|
+for _, row in df.iterrows():
|
|
|
+ Blog.objects.create(**row)
|
|
|
+```
|
|
|
+
|
|
|
+## ✅ État Actuel
|
|
|
+
|
|
|
+Le blog fonctionne correctement sans `django-import-export`.
|
|
|
+Vous pouvez toujours gérer vos articles via l'interface admin Django.
|
|
|
+
|
|
|
+---
|
|
|
+
|
|
|
+**Date** : Octobre 2025
|
|
|
+**Python** : 3.14
|
|
|
+**Django** : 5.1 LTS
|