Django Imperavi editor
Installation
Install or add django-imperavi to your python path.
Add imperavi to your INSTALLED_APPS setting.
Add imperavi URL include to your project’s urls.py file:
url(r'^imperavi/', include('imperavi.urls')),
Usage
The quickest way to add rich text editing capabilities to your admin is to use the included ImperaviAdmin class. For example:
from models import Category
from imperavi.admin import ImperaviAdmin
class CategotyAdmin(ImperaviAdmin):
pass
admin.site.register(Category, CategotyAdmin)
If you want to use it with inline admin models you need to use ImperaviStackedInlineAdmin class:
from models import Post
from imperavi.admin import ImperaviStackedInlineAdmin
class PostInline(ImperaviStackedInlineAdmin):
model = Post
extra = 1
Custom settings
Add a IMPERAVI_CUSTOM_SETTINGS variable to your settings.py with custom config:
IMPERAVI_CUSTOM_SETTINGS = {
'lang': 'ua',
'toolbar': 'mini',
'resize': true
}
Full list of settings is here.
Media URL
You can also customize the URL that django-imperavi will look for the Editor media at by adding IMPERAVI_UPLOAD_PATH to your settings.py file like this:
IMPERAVI_UPLOAD_PATH = 'imperavi-uploads/'
The default value is 'imperavi/'.
Unique images per model
If you want to serve unique media content for specific model you can add unique_media = True to your admin class:
from models import Category
from imperavi.admin import ImperaviAdmin
class CategotyAdmin(ImperaviAdmin):
unique_media = True
admin.site.register(Category, CategotyAdmin)
Metadata
Release files for django-imperavi 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-imperavi-0.2.3.tar.gz | 98.0 kB | Without provenance | Details for django-imperavi-0.2.3.tar.gz |
Release files / django-imperavi-0.2.3.tar.gz
| Download URL | django-imperavi-0.2.3.tar.gz |
|---|---|
| Size | 98.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b05ff0afbc8a23a28ab599abef6aa8e762f32b5830ce7522905b471763d3da2
|
|
BLAKE2b-256 checksum How to use checksums |
55eccd6efb095376b19a06592be40c0380e717a888e66918a747f48c3ab7df17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-imperavi 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.