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
Close
Hashes for django-image-uploader-widget-0.4.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a2bad0e51f4f9dcc0d00d1f6d86e6806e16bc5f6d9c9c04a0e8bda192ea72fb |
|
MD5 | 6ea07b6b1d77418dafc34ecef7b516a0 |
|
BLAKE2b-256 | 9a68db7e7535cca143e4180e0d712365622b498971a9086fcdf89fed8f683fbc |
Close
Hashes for django_image_uploader_widget-0.4.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47f1b615214f40126015ec74785c2705a04dda4cf64ec8aa539e4213e9749485 |
|
MD5 | 878a1b73990a0bd1c10fb9b84edfd96e |
|
BLAKE2b-256 | 17f84e5246432f4c5a3ff7b03ed61df575ae6bab3ef881b40787475b89ff85a2 |