An AI-powered assistant for Django Admin, allowing data import using OpenAI.
Project description
Django Admin AI
An AI-powered enhancement for Django Admin that integrates artificial intelligence directly into the Django admin panel. This package provides utilities for AI-assisted data processing, automatic form population, intelligent suggestions, and more.
🚀 Key Features
✅ AI-driven form population: Automatically fill forms by extracting data from various document types (PDF, images, text files).
✅ Seamless Django Admin integration: Enable AI-enhanced forms with a single line of code.
✅ Easy setup: Minimal configuration required to get started.
🔮 Future Enhancements (Planned Features)
🚀 Voice input support: Record audio directly in Django Admin and let AI extract and fill form data.
🚀 Foreign Key handling: AI-driven form population for ForeignKey fields.
🚀 Embedded AI chatbot: A chatbot trained with your database schema to assist users and execute database queries on demand.
🛠 Installation
Prerequisites
- Python 3.8+
- Django 3.0+
Install via pip
pip install django-admin-ai
⚙️ Setup
1️⃣ Add django_admin_ai to your Django settings
In your project's settings.py, update the following:
import django_admin_ai
import os
INSTALLED_APPS = [
...,
'django_admin_ai', # Add this line
]
TEMPLATES = [
{
'DIRS': [
os.path.join(BASE_DIR, 'templates/'),
os.path.join(os.path.dirname(django_admin_ai.__file__), 'templates'),
],
},
]
Define your OpenAI API key in settings.py:
DJANGO_ADMIN_AI_CONFIG = {
"openai_api_key": "<YOUR_OPENAI_API_KEY>"
}
2️⃣ Configure URL routing
In your project's urls.py, include Django Admin AI:
from django.urls import path, include
urlpatterns = [
path('admin-ai/', include('django_admin_ai.urls')),
]
3️⃣ Enable AI-powered forms in your models
In your Django app’s admin.py, simply add the ai_import flag to your admin models:
from django.contrib import admin
from .models import YourModel
class YourModelAdmin(admin.ModelAdmin):
ai_import = True # Enable AI-driven form filling
admin.site.register(YourModel, YourModelAdmin)
Now, when you upload a PDF, text file, or image, the AI will extract relevant information and populate the fields automatically! 🎉
📜 License
This project is licensed under the MIT License. Feel free to contribute and improve the project!
💡 Contributing
We welcome contributions! If you’d like to add a feature or fix a bug, feel free to fork the repository and submit a pull request.
📬 Stay Updated
Follow the repository and stay tuned for updates!
🔥 Start enhancing your Django Admin with AI today! 🔥
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
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 django_admin_ai-0.1.4.tar.gz.
File metadata
- Download URL: django_admin_ai-0.1.4.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2911feb6f2e718a62f2cb8885019e2557d892e44ec7a7bf7c9c301da9c405193
|
|
| MD5 |
d2cfaf377275be4f70e237a6f04e7b46
|
|
| BLAKE2b-256 |
db25476571ce4dac92bce9ccb1edf22eabc7a8ffcae4119db00828683a4e4b26
|
File details
Details for the file django_admin_ai-0.1.4-py3-none-any.whl.
File metadata
- Download URL: django_admin_ai-0.1.4-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
977258f271594a3951f76b6a606bf0215ad460ba518712cfb6c815a896812b61
|
|
| MD5 |
68e88835e2a6fe508d007255c4e8251c
|
|
| BLAKE2b-256 |
096bc8880e36ec4cb2d5c44745153b4bafde1bbfaf70d087f120cceae64f8bd2
|