DjangoCMS | Content Management System with Django Framework | Content Management System library
kandi X-RAY | DjangoCMS Summary
kandi X-RAY | DjangoCMS Summary
Content Management System with Django Framework
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Moves a page to the given position
- Get a CMS setting
- Jsonify response object
- Deletes all revisions related to a page
- Deletes a translation
- Check if user has delete permission
- Get a language object
- Check if page has change permissions
- Try to download setuptools
- Delete a placeholder
- Validates the cleaned data
- Process plugin report
- Render HTML tag
- Get a list of django templates
- Render a tag
- Set or create an object
- Saves a model instance
- Create a new page
- Check presence of copy_relations
- Resolve the object
- Copy the content of all drafts
- Handles editing of the title field
- Checks if the reverse_id field already exists
- Render the changelist page
- Publish a page
- Copy a page
DjangoCMS Key Features
DjangoCMS Examples and Code Snippets
Community Discussions
Trending Discussions on DjangoCMS
QUESTION
I recently started learning Django
& Django CMS
, and was trying to change the language of my website from English to Dutch, I migrated over my pages using
ANSWER
Answered 2021-May-01 at 15:11You are using only one language, so don’t use i18n_patterns().
QUESTION
I would like to set a default maximum size of images in the djangocms-picture plugin. I would like to do this at template level.
This simple template for example:
...ANSWER
Answered 2021-Apr-13 at 19:28I have solved this one.
Important points- Set the right plugin context: http://docs.django-cms.org/en/latest/how_to/custom_plugins.html?highlight=width#plugin-context
- Be sure the image uses “automatic scaling”.
- Do not use the
tumbnails
plugin directly.
QUESTION
Encounter an error when using djangocms publishing page changes.
when I ran tail -f /var/log/apache2/error.log
, it returned:
ANSWER
Answered 2021-Mar-25 at 08:35Downgrade to django-treebeard version below 4.5.1, e.g. 4.4. Version 4.5.1 seems to be incompatible.
QUESTION
I have a DjangoCMS website to administer. I need to publish a page only for EN language. The issue is that there are 3 more languages, and when I publish the page only for EN, it becomes available in other language menus as well. The menu item name is in English which makes the website look very unprofessional. Is this a DjangoCMS specific weakness of menu logic or poorly coded website?
I found that there are others reporting this issue too - https://github.com/divio/django-cms/issues/6004
How can I exclude unwanted pages to appear on the menu of other languages?
...ANSWER
Answered 2020-Oct-01 at 10:50@lazdins This could be fixed in 3.7.1: "Fixed a bug where the menu would render draft pages even if the page on the request was a public page. This happens when a user without change permissions requests edit mode." https://github.com/divio/django-cms/blob/develop/CHANGELOG.rst#371-2019-11-26
3.4 I also no longer supported, It is advised that you move to 3.7 as it is an LTS release that is currently supported and the recommended version at the time of my comment: https://www.django-cms.org/en/roadmap/
I have posted this into the issue as well. https://github.com/divio/django-cms/issues/6004#issuecomment-702052627
QUESTION
I installed djangocms in existing django project, following the instructions: http://docs.django-cms.org/en/latest/how_to/install.html
but when I run py manage.py cms check
or py manage.py migrate
I have this error:
...File "C:\Users\usuario\Envs\env_cuid_lab\lib\site-packages\cms\forms\fields.py", line 4, in from django.forms.fields import EMPTY_VALUES ImportError: cannot import name 'EMPTY_VALUES' from 'django.forms.fields' (C:\Users\usuario\Envs\env_cuid_lab\lib\site-packages\django\forms\fields.py)
ANSWER
Answered 2020-Oct-14 at 07:24What version of Django are you using?
I assume you are using Django 3.1.2? if so then downgrade to 3.0 because DjangoCMS does not is not compatible with 3.1 at the moment.
This should help : pip install Django==3.0
http://docs.django-cms.org/en/latest/index.html#requirements
QUESTION
we're using djangocms and have german and english pages. Now the slugs for both pages need to be the same. Is there a way to copy the slugs of all german pages to all the english ones without going into the site settings and copy-pasting the german slug to the english slug?
I was going for something like
...ANSWER
Answered 2020-Oct-01 at 10:24The copy management command copies the entire contents of pages / sites, it is not limited to just the settings. https://github.com/divio/django-cms/blob/develop/docs/reference/cli.rst#cms-copy
You could create your own management command by copying the entire command from the cms and modifying it to suit your needs, this would be located in your own project.
All you want to do is to get the DE title and set the slug:
https://github.com/divio/django-cms/blob/develop/cms/management/commands/subcommands/copy.py#L56
This is how the CMS does this internally when copying a page: https://github.com/divio/django-cms/blob/develop/cms/models/pagemodel.py#L700
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
It’s solved
I am making a site on djangoCMS and for a better view I disabled the the toolbar. Now I can't enable it or I can't find any option to do that.
Here the toolbar means DjangoCMS own toolbar, not the website's toolbar which I enable it from the template by inserting {% cms_toolbar %}
& {% show_menu 0 100 100 100 %}
.
It's a silly thing but it is a frustration. I went to documentation, all they have talked about website's own toolbar and its customization.
Django version 2.2.12 and I am using Python 3.8.
...ANSWER
Answered 2020-May-03 at 10:48I used 127.0.01:8000/en/?edit and it worked. This is for the ones who might need the solution in case.
Thanx any way
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!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DjangoCMS
You can use DjangoCMS like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
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