djangocms-text-ckeditor | Text Plugin for django CMS using CKEditor | Content Management System library
kandi X-RAY | djangocms-text-ckeditor Summary
kandi X-RAY | djangocms-text-ckeditor Summary
Text Plugin for django CMS using CKEditor 4
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of djangocms-text-ckeditor
djangocms-text-ckeditor Key Features
djangocms-text-ckeditor Examples and Code Snippets
Community Discussions
Trending Discussions on djangocms-text-ckeditor
QUESTION
I am trying to get custom templates working for djangocms-video.
So far there is a fresh djangocms project set up with some bootstrap and running fine.
According to the readme we would need to specify this in the settings.py to make a custom template available (in this case a template named "feature"):
...ANSWER
Answered 2022-Jan-04 at 21:10In Django, the gettext_lazy(…)
function [Django-doc] is often imported as _
to manage translations. This is explained in the Standard translation:
Python’s standard library
gettext
module installs_()
into the global namespace, as an alias forgettext()
. In Django, we have chosen not to follow this practice, for a couple of reasons(…)
Because of how xgettext (used by makemessages) works, only functions that take a single string argument can be imported as
_
:
You thus should add:
QUESTION
I currently installed django-cms
and djangocms-blog
. When I run migrate
, it throws the following error. Some ressources suggest to install six
, which however is already satisfied in my venv.
I use the latest Python, pip and django versions.
These are the guides I followed to set up djangocms and djangocms-blog.
Any solution to this?
...ANSWER
Answered 2020-May-09 at 16:36python_2_unicode_compatible
was removed from Django in 3.0: https://docs.djangoproject.com/en/3.0/releases/3.0/#removed-private-python-2-compatibility-apis
It looks like you need to update one of your packages that's using it. From the traceback, that would be aldryn_apphooks_config
. I'm not sure where that comes from, would need some more details for that. I would suggest checking your requirements file and trying to upgrade packages until it works, but you might have to end up removing some.
QUESTION
I have developed a simple project with DjangoCMS(3.7.2) and it works great in the local. I 'm gonna run it on a ubuntu server, which I have another Django project run on it with no issues. Both of my projects are built using python 3.6 & MySQL database. I took these steps to run my new project:
- Cloned the project from the server via git and updated the
settings.py
file - Created an empty database on the server
- Installed a virtualenv on server by
python3 -m venv venv
- Activated the
venv
and upgradedpip
- Installed requirements successfully using
pip install -r requirements.txt
- Tried to Migrate by
python3 manage.py migrate
But I got this error:
...ANSWER
Answered 2020-May-01 at 06:06As Alasdair mentioned:
I reinstalled the Django-CMS module by running python3 -m pip install "django-cms==3.7.2"
, and surprisingly it worked.
QUESTION
I had a working DjangoCMS application running DjangoCMS 3.7.1 and Django 2.2, however after I just bumped the DjangoCMS version to 3.7.2 and with it, Django to 3.0.1, I am now getting a render error on a page that I have a simple list view.
The site will load my custom account login page just fine, but once logged in, the listview breaks and displays this error: Traceback
...ANSWER
Answered 2020-Apr-27 at 13:38I ran into the same issue upgrading DjangoCMS to 3.7.2. I believe the context argument was removed in Django 3 (source). The problem for me was djangocms-text-ckeditor doesn't support Django 3 yet. More specifically, HTMLField in my model didn't work. I opened an issue here if you want to comment on it as others have done. Maybe it will get them to fix it sooner. For now, you will probably have to wait till it's fixed. Cheers!
QUESTION
Perhaps I do not understand some simple thing. I’m reading the documentation for the second day and don’t understand how to use ckeditor in django-cms, in a third-party plugin.
Here is written:
Usage as a model field If you want to use the widget on your own model fields, you can! Just import the provided HTMLField like so:
from djangocms_text_ckeditor.fields import HTMLField
And use it in your models, just like a TextField:
class MyModel(models.Model):
myfield = HTMLField(blank=True)
This field does not allow you to embed any other CMS plugins within the text editor. Plugins can only be embedded within Placeholder fields.If you need to allow additional plugins to be embedded in a HTML field, convert the HTMLField to a Placeholderfield and configure the placeholder to only accept TextPlugin. For more information on using placeholders outside of the CMS see:
http://docs.django-cms.org/en/latest/how_to/placeholders.html
Currently HTMLField is working and after reading the instructions I don’t understand how I can "convert the HTMLfield to a Placeholder and configure the placeholder to only accept TextPlugin" in a third party plugin which was fully integrated into django-cms. I have never created placeholders in third party plugins.
My goal is so that in a third party plugin I can set a text box in which I can edit the text using formatting features. I am using the latest Django-CMS. By default, it has djangocms_text_ckeditor.
Thank you!
models.py:
...ANSWER
Answered 2020-Apr-08 at 10:55I found the solution. I have to include the "{{ form.media }}" tag in the templates
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install djangocms-text-ckeditor
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page