Django Extended Flatpages
============================
Installing:
pip install django_extended_flatpages
In settings:
INSTALLED_APPS = (
...
...
'ckeditor',
'extended_flatpages',
...
)
MIDDLEWARE_CLASSES = (
...
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
...
)
Configure CKeditor
https://github.com/shaunsephton/django-ckeditor#installation
settings.py
# ckeditor config
CKEDITOR_UPLOAD_PATH = MEDIA_ROOT + '/editor'
CKEDITOR_CONFIGS = {
'default': {
'toolbar': [
[ 'Source','-','Save','-', 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo', '-', 'Find','Replace','-','SelectAll'],
[ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] ,'/',
[ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ],
[ 'Link','Unlink' ],
[ 'Image','Table','HorizontalRule','SpecialChar' ],
[ 'Format'],
[ 'TextColor','BGColor', '-', 'Styles','Format','FontSize' ],
[ 'Maximize', 'ShowBlocks','-','About' ],
],
'format_tags': 'p;h1;h2;h3;h4;h5;h6;pre;address;div',
},
}
urls.py
(r'^ckeditor/', include('ckeditor.urls')),
And finally create a
/templates/flatpages/default.html template to get working this.
============================
Installing:
pip install django_extended_flatpages
In settings:
INSTALLED_APPS = (
...
...
'ckeditor',
'extended_flatpages',
...
)
MIDDLEWARE_CLASSES = (
...
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
...
)
Configure CKeditor
https://github.com/shaunsephton/django-ckeditor#installation
settings.py
# ckeditor config
CKEDITOR_UPLOAD_PATH = MEDIA_ROOT + '/editor'
CKEDITOR_CONFIGS = {
'default': {
'toolbar': [
[ 'Source','-','Save','-', 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo', '-', 'Find','Replace','-','SelectAll'],
[ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] ,'/',
[ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ],
[ 'Link','Unlink' ],
[ 'Image','Table','HorizontalRule','SpecialChar' ],
[ 'Format'],
[ 'TextColor','BGColor', '-', 'Styles','Format','FontSize' ],
[ 'Maximize', 'ShowBlocks','-','About' ],
],
'format_tags': 'p;h1;h2;h3;h4;h5;h6;pre;address;div',
},
}
urls.py
(r'^ckeditor/', include('ckeditor.urls')),
And finally create a
/templates/flatpages/default.html template to get working this.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-extended-flatpages-0.1.tar.gz.
File metadata
- Download URL: django-extended-flatpages-0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a50f5283568529d6e6234b298b95c4ad39da2f360f83f3ab11b743161607c67
|
|
| MD5 |
4fdc1d1218de15a6c07c4c2abdebcfaf
|
|
| BLAKE2b-256 |
a0c6e0e6bcc1cda1fed31bcf19dbebd4da5788b636bdd665cd41e849e5924329
|