Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-extended-flatpages

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-extended-flatpages

Django flatpages CKEditor integration and SEO values.

  • 0.1
  • PyPI
  • Socket score

Maintainers
1

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.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc