django-ckeditor 0.0.8 |
Company:
Shaun Sephton
|
Date Added: June 16, 2013 | Visits: 389 |
|
||||||||
Django admin CKEditor integration.<br /><br />Provides a RichTextField and CKEditorWidget utilizing CKEditor with image upload and browsing support included.<br />Installation<br /><br /> 1.<br /><br /> Install or add django-ckeditor to your python path.<br /> 2.<br /><br /> Add ckeditor to your INSTALLED_APPS setting.<br /> 3.<br /><br /> Copy the media/ckeditor directory into any directory within your media root. You can override the location in your settings (see below).<br /> 4.<br /><br /> Add a CKEDITOR_MEDIA_PREFIX setting to the project's settings.py file. This setting specifies a URL prefix to the ckeditor JS and CSS media (not uploaded media). Make sure to use a trailing slash:<br /><br /> CKEDITOR_MEDIA_PREFIX = "/media/ckeditor/"<br /><br /> 5.<br /><br /> Add a CKEDITOR_UPLOAD_PATH setting to the project's settings.py file. This setting specifies an absolute path to your ckeditor media upload directory. Make sure you have write permissions for the path, i.e.:<br /><br /> CKEDITOR_UPLOAD_PATH = "/home/media/media.lawrence.com/uploads"<br /><br /> 6.<br /><br /> Add ckeditor url include to the project's urls.py file:<br /><br /> (r'^ckeditor/', include('ckeditor.urls')),<br /><br /> 7.<br /><br /> Optionally, set the CKEDITOR_RESTRICT_BY_USER setting to True in the project's settings.py file (default False). This restricts access to uploaded images to the uploading user (e.g. each user only sees and uploads their own images). Superusers can still see all images. NOTE: This restriction is only enforced within the CKEditor media browser.<br /> 8.<br /><br /> Optionally, add a CKEDITOR_UPLOAD_PREFIX setting to the project's settings.py file. This setting specifies a URL prefix to media uploaded through ckeditor, i.e.:<br /><br /> CKEDITOR_UPLOAD_PREFIX = "http://media.lawrence.com/media/ckuploads/<br /><br />(If CKEDITOR_UPLOAD_PREFIX is not provided, the media URL will fall back to MEDIA_URL with the difference of MEDIA_ROOT and the uploaded resource's full path and filename appended.)<br />Usage<br />Field<br /><br />The quickest way to add rich text editing capabilities to your models is to use the included RichTextField model field type. A CKEditor widget is rendered as the form field but in all other regards the field behaves as the standard Django TextField. For example:<br /><br />from django.db import models<br />from ckeditor.fields import RichTextField<br /><br />class Post(models.Model):<br /> content = RichTextField()<br /><br />Widget<br /><br />Alernatively you can use the included CKEditorWidget as the widget for a formfield. For example:<br /><br />from django import forms<br />from django.contrib import admin<br />from ckeditor.widgets import CKEditorWidget<br /><br />from post.models import Post<br /><br />class PostAdminForm(forms.ModelForm):<br /> content = forms.CharField(widget=CKEditorWidget())<br /> class Meta:<br /> model = Post<br /><br />class PostAdmin(admin.ModelAdmin):<br /> form = PostAdminForm<br /><br />admin.site.register(Post, PostAdmin)<br /><br />#md5=f1a33b05f9b41de1d84dcff00282916f
|
License: Freeware | Size: 1.33 MB |
Desktop Utilities
-
Copy file or directory path 0.2
Copy file or directory path is a service menu that can copy the full path of file or directory to klipper.. Download KDE-Apps.org Community Portal for KDE Applications Software Office Multimedia Graphic Network Printing Education Games Development... |
||
Form Processors
-
Directory tree control 1.1
This control subclasses the MFC CTreeCtrl to display and let you select the path of a folder/directory. |
40.96 KB | |
Audio Tools
-
Elisa Media Center 0.1.6
Elisa Media Center project was designed to create an open source cross platform media center solution. While our primary development and deployment platform is GNU/Linux and Unix operating systems we also currently support Microsoft Windows and... |
10.9 MB | |
Shell & Desktop
-
Media Listings
Media Listings project aims to provide a comfortable way to see the TV listings of supported TV channels. More exactly, it displays defined number of programs, which are yet to come, based on current date and time. Clicking one of the displayed... |
12.29 KB | |
Libraries
-
Windows Media .NET 1.1
Windows Media .NET is a project that has been designed in order to help programmers. Windows Media .NET allows programmers that create managed applications (C#, VB.NET, etc.) use the interfaces in the Windows Media Format sdk and the waveIn*,... |
||
Modules
-
Relocate Upload 0.1
It can be used to relocate files from the default WordPress upload directory.InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Requirements: - WordPress 2.6 or higher |
||
Networking
-
Media Library Gallery 1.0.2
Media Library Gallery automatically creates a gallery with every images posts have in attachment. Support thickbox. To include the gallery in a page, simply write in the post: [media-library-gallery]. You can also customize: see the documentation... |
10 KB | |
Networking
-
Flexible Upload 1.13
Flexible Upload is a plugin for Wordpress intended to extend Wordpress basic upload functionality.The main features are: * Automatically resize/crop picture at upload * Create thumbnail of the desired size * Include watermark in every uploaded... |
10 KB | |
Desktop Toys
-
Upload to Imgur r13
Upload to Imgur is a relatively simple Nautilus script to upload one or more image files to http://imgur.com/. If you try to upload an image file or any other type of file that is not permitted, the script will simply skip them. To... |
10.24 KB | |
Puzzles
-
Path 3.01
Try to pass on a path. Before the beginning the game field is partially filled in with units. It is necessary, installing new units so that in any direction was no more than five units, to connect all units in the continuous path. There is a... |
483 KB |
Linux Software
-
EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any... |
34.4 MB | |
Linux Software
-
wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page... |
3.51 MB | |
Linux Software
-
Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad.... |
488 B | |
Linux Software
-
Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video... |
17.7 MB | |
Linux Software
-
Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql. |
47.5 KB | |
Programming
-
Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations. |
471.04 KB | |
Programming
-
Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions. |
30.72 KB | |
Programming
-
Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned... |
30.72 KB | |
Programming
-
logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant... |
174.08 KB | |
Programming
-
OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a... |
3.83 MB |