Simple Image Uploader Widget for Django-Admin
Project description
django-image-uploader-widget
Introduction
A beautiful image uploader widget for django and django-admin.
Basic Preview
Widget Behaviour
Theme Toggle With Django 4.2+
Django-Admin Inline Widget for Multiple Files Handling
Documentation
To understand this package and how to use it you can access the package documentation.
Installing
Install via pip package manager:
pip install django-image-uploader-widget
Add to installed apps, in settings.py
:
INSTALLED_APPS = [
# ...
'image_uploader_widget',
# ...
]
Usage
With Admin
# admin.py
from django.contrib import admin
from django.db import models
from image_uploader_widget.widgets import ImageUploaderWidget
from .models import YourModel
@admin.register(YourModel)
class YourModelAdmin(admin.ModelAdmin):
formfield_overrides = {
models.ImageField: {'widget': ImageUploaderWidget},
}
With ModelForm
# forms.py
from django import forms
from image_uploader_widget.widgets import ImageUploaderWidget
class ExampleForm(forms.ModelForm):
class Meta:
widgets = {
'image': ImageUploaderWidget(),
}
fields = '__all__'
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
File details
Details for the file django-image-uploader-widget-0.4.3.tar.gz
.
File metadata
- Download URL: django-image-uploader-widget-0.4.3.tar.gz
- Upload date:
- Size: 15.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 030ff75e2267693559ca61bcff0eac15f3f6af911fdbedcfb864b47e6b9d216d |
|
MD5 | c0b42acb33b9655b2394b76999a6b607 |
|
BLAKE2b-256 | 3a5b25767d5edae0f8d870ab2923c7a3238760ef3042549a82c92b0e60e393aa |
File details
Details for the file django_image_uploader_widget-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: django_image_uploader_widget-0.4.3-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68105bee4f03d1f3d5807c86dbf067a92c48301062587378c377d1d6b5495db |
|
MD5 | 7b4fd2de1f8000f3b2bca493e67ff482 |
|
BLAKE2b-256 | 265b34c1d4e71d2d22ebb55cb388b5d6f7e6d68d39ccc8cb40b0b638d0f938b9 |