Commits

Gregory Petukhov committed 6a7d12d

Remove ckeditor

Comments (0)

Files changed (10)

 * sorl-thumbnail
 * django-common
 * south
-* django-ckeditor
 
 
 Installation
     * Add to INSTALLED_APPS::
 
         'sorl.thumbnail',
-        'ckeditor',
-
-    * Add to urls.py::
-
-        url(r'^ckeditor/', include('ckeditor.urls')),
-
-    * Add to settings.py::
-
-        CKEDITOR_UPLOAD_PATH = os.path.join(MEDIA_ROOT, 'upload/ckeditor')
-        CKEDITOR_CONFIGS = {
-            'default': {
-                'toolbar': 'Full',
-                'width': 840,
-                'height': 300,
-                'toolbarCanCollapse': False,
-            }
-        }
 
 * Install django-article application
 * Add to INSTALLED_APPS::

article/migrations/0002_auto__del_field_article_date_published__add_field_article_user__chg_fi.py

 
 
         # Changing field 'Article.content'
-        db.alter_column('article_article', 'content', self.gf('ckeditor.fields.RichTextField')())
+        db.alter_column('article_article', 'content', self.gf('django.db.models.fields.TextField')())
 
         # Changing field 'Article.teaser'
-        db.alter_column('article_article', 'teaser', self.gf('ckeditor.fields.RichTextField')())
+        db.alter_column('article_article', 'teaser', self.gf('django.db.models.fields.TextField')())
         # Removing index on 'Article', fields ['is_starred']
         db.delete_index('article_article', ['is_starred'])
 
         'article.article': {
             'Meta': {'object_name': 'Article'},
             'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['article.Category']"}),
-            'content': ('ckeditor.fields.RichTextField', [], {}),
+            'content': ('django.db.models.fields.TextField', [], {}),
             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
             'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'meta_keywords': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
             'slug': ('django.db.models.fields.SlugField', [], {'default': 'None', 'max_length': '255'}),
-            'teaser': ('ckeditor.fields.RichTextField', [], {}),
+            'teaser': ('django.db.models.fields.TextField', [], {}),
             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
         },

article/migrations/0003_auto__add_field_article_comment_count.py

             'Meta': {'object_name': 'Article'},
             'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['article.Category']"}),
             'comment_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
-            'content': ('ckeditor.fields.RichTextField', [], {}),
+            'content': ('django.db.models.fields.TextField', [], {}),
             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
             'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'meta_keywords': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
             'slug': ('django.db.models.fields.SlugField', [], {'default': 'None', 'max_length': '255'}),
-            'teaser': ('ckeditor.fields.RichTextField', [], {}),
+            'teaser': ('django.db.models.fields.TextField', [], {}),
             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
         },

article/migrations/0004_auto__add_field_article_alias.py

             'alias': ('django.db.models.fields.CharField', [], {'max_length': '20', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
             'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['article.Category']"}),
             'comment_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
-            'content': ('ckeditor.fields.RichTextField', [], {}),
+            'content': ('django.db.models.fields.TextField', [], {}),
             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'image': ('django.db.models.fields.files.ImageField', [], {'max_length': '100', 'blank': 'True'}),
             'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'meta_keywords': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
             'slug': ('django.db.models.fields.SlugField', [], {'default': 'None', 'max_length': '255'}),
-            'teaser': ('ckeditor.fields.RichTextField', [], {}),
+            'teaser': ('django.db.models.fields.TextField', [], {}),
             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
         },

article/migrations/0005_auto__add_field_article_details_display_image.py

             'alias': ('django.db.models.fields.CharField', [], {'max_length': '20', 'unique': 'True', 'null': 'True', 'blank': 'True'}),
             'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['article.Category']"}),
             'comment_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
-            'content': ('ckeditor.fields.RichTextField', [], {}),
+            'content': ('django.db.models.fields.TextField', [], {}),
             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
             'details_display_image': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'meta_keywords': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
             'slug': ('django.db.models.fields.SlugField', [], {'default': 'None', 'max_length': '255'}),
-            'teaser': ('ckeditor.fields.RichTextField', [], {}),
+            'teaser': ('django.db.models.fields.TextField', [], {}),
             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
         },

article/migrations/0006_auto__del_field_article_alias.py

             'Meta': {'object_name': 'Article'},
             'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['article.Category']"}),
             'comment_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
-            'content': ('ckeditor.fields.RichTextField', [], {}),
+            'content': ('django.db.models.fields.TextField', [], {}),
             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
             'details_display_image': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'meta_keywords': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
             'slug': ('django.db.models.fields.SlugField', [], {'default': 'None', 'max_length': '255'}),
-            'teaser': ('ckeditor.fields.RichTextField', [], {'blank': 'True'}),
+            'teaser': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
         },

article/migrations/0007_auto__add_field_article_alias__add_field_article_is_list_visible.py

             'alias': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '20', 'blank': 'True'}),
             'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['article.Category']"}),
             'comment_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
-            'content': ('ckeditor.fields.RichTextField', [], {}),
+            'content': ('django.db.models.fields.TextField', [], {}),
             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
             'details_display_image': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'meta_keywords': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
             'slug': ('django.db.models.fields.SlugField', [], {'default': 'None', 'max_length': '255'}),
-            'teaser': ('ckeditor.fields.RichTextField', [], {'blank': 'True'}),
+            'teaser': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
         },

article/migrations/0008_auto__add_field_article_content_html__add_field_article_teaser_html.py

             'alias': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '20', 'blank': 'True'}),
             'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['article.Category']"}),
             'comment_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
-            'content': ('ckeditor.fields.RichTextField', [], {}),
+            'content': ('django.db.models.fields.TextField', [], {}),
             'content_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
             'details_display_image': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
             'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'meta_keywords': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
             'slug': ('django.db.models.fields.SlugField', [], {'default': 'None', 'max_length': '255'}),
-            'teaser': ('ckeditor.fields.RichTextField', [], {'blank': 'True'}),
+            'teaser': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'teaser_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})

article/migrations/0009_auto__add_field_article_markup.py

             'alias': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '20', 'blank': 'True'}),
             'category': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'articles'", 'to': "orm['article.Category']"}),
             'comment_count': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
-            'content': ('ckeditor.fields.RichTextField', [], {}),
+            'content': ('django.db.models.fields.TextField', [], {}),
             'content_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
             'details_display_image': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
             'meta_description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'meta_keywords': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
             'slug': ('django.db.models.fields.SlugField', [], {'default': 'None', 'max_length': '255'}),
-            'teaser': ('ckeditor.fields.RichTextField', [], {'blank': 'True'}),
+            'teaser': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'teaser_html': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
             'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
             'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
         }
     }
 
-    complete_apps = ['article']
+    complete_apps = ['article']

article/models.py

 # -*- coding: utf-8 -*-
 from datetime import datetime
 from south.modelsinspector import add_introspection_rules
-from ckeditor.fields import RichTextField
 
 from django.db import models
 from django.core.urlresolvers import reverse