django-cms

django admin scrapy with UI

孤者浪人 提交于 2021-01-29 14:49:45
问题 i m new to this and struggling to find a way where i can possibly integrate scrapy into my django admin. Meaning there by , - able to trigger scrapy spider from my django admin I have already created the spider to collect data persisting data into mongodb (so no worries of using wrapper to w.r.t performance) have django admin interface able to read that data and display in admin Now i would like to put a feature where i can see this is my spider and i use the clickbutton to trigger it. OR

Main picture missing in djangocms-light-gallery

不问归期 提交于 2021-01-29 08:49:47
问题 I encountered a problem using the djangocms-light-gallery from https://pypi.org/project/djangocms-light-gallery/. After following the installation steps described in the above posted link, everything seemed to work as expected at first sight. The plugin appears as "Light Gallery" among the other components, thumbnails are displayed correctly, the gallery view opens, etc. The only thing that is missing is the main picture in gallery view. I have no idea how to fix this.. I receive the

django CMS error cms_urlconfrevision on deployment

若如初见. 提交于 2021-01-28 05:02:51
问题 I'm trying to deploy a django CMS app to PythonAnywhere or Heroku but I keep getting this error on Heroku: ProgrammingError at / relation "cms_urlconfrevision" does not exist LINE 1: ...sion"."id", "cms_urlconfrevision"."revision" FROM "cms_urlco... and this error on PythonAnywhere: OperationalError at / no such table: cms_urlconfrevision The app works fine on localhost . I understand it's a database table missing but I have no idea how to fix it. I tried removing all the migration files and

个人收集的一些Django基础及实战教程

£可爱£侵袭症+ 提交于 2020-05-06 03:17:24
Django基础教程 Django3.0官方中文文档 https://docs.djangoproject.com/zh-hans/3.0/ 菜鸟教程: https://www.runoob.com/django/django-tutorial.html 自强学堂: https://code.ziqiangxuetang.com/django/django-tutorial.html Zhang_derek https://www.cnblogs.com/derek1184405959/p/8338229.html 刘江的博客 Django2.2教程 https://www.liujiangblog.com/course/django/2 电子书 Django企业开发实战 http://django-practice-book.com/ Django完整实战项目 Zhang_derek博客 Blog项目 Bootstrap ( Django 2.0 ) https://www.cnblogs.com/derek1184405959/category/1215982.html 在线教育平台 ( Django 2.0 ) https://www.cnblogs.com/derek1184405959/p/8590360.html 生鲜超市 ( Django 2.0 ) https:/

Why is Django only showing some of my translations

送分小仙女□ 提交于 2020-01-25 03:09:14
问题 I've got a site with translation strings in both the HTML templates and the views.py , forms.py and models.py files. Django has created the django.po file for my second language, and I have entered most of the translations. However, only translations in my .html and view.py files are showing up on the site. the others are being ignored it seems (models.py, forms.py - both defaulting to English) What's going on? I've obviously compiled my django.mo file and that's working - otherwise a lot of

Django CMS 3 Detect if I am facing 'structure' or 'content'

£可爱£侵袭症+ 提交于 2020-01-13 10:25:08
问题 Django CMS 3 has two modes: structure and content . I need to detect if the user is using one or the other in order to apply specific css. Is there a way to to this? 回答1: You can detect the current mode via request.toolbar.build_mode and request.toolbar.edit_mode like this: {% if request.toolbar.build_mode %} We're in structure mode! {% elif request.toolbar.edit_mode %} We're in content mode ! {% else %} We're not in edit mode! {% endif %} 来源: https://stackoverflow.com/questions/28191037

How to integrate Django-CMS into an existing project

青春壹個敷衍的年華 提交于 2020-01-12 19:06:53
问题 I need to integrate Django-CMS 3.x into an existing project ( mypjc hereafter). I already checked this question (and other similar) but they point to a tutorial page that is no longer available. I'm a bit confused by the tons of infos you can find online and I have not really understood if Django-CMS can be integrated as an app into an existing and independently running Django project. mypjc (using Django 1.8) would benefit from a user friendly CMS. Basically I'd the user to be able to write

How to integrate Django-CMS into an existing project

送分小仙女□ 提交于 2020-01-12 19:04:39
问题 I need to integrate Django-CMS 3.x into an existing project ( mypjc hereafter). I already checked this question (and other similar) but they point to a tutorial page that is no longer available. I'm a bit confused by the tons of infos you can find online and I have not really understood if Django-CMS can be integrated as an app into an existing and independently running Django project. mypjc (using Django 1.8) would benefit from a user friendly CMS. Basically I'd the user to be able to write

undefined uploads using django cms cmsplugin_filer_file and cmsplugin_filer_image

不问归期 提交于 2020-01-11 07:36:51
问题 I have just started using django-cms so please forgive my newbieness. Every time i try to upload a file in the admin area, for example an image file using cmsplugin_filer_file' / cmsplugin_filer_image it comes up as undefined in the clipboard area. It’s strange because the running dots appear as if it is loading the image then bang image undefined. It allows me to create folders but I cannot view uploaded files. On closer inspection the image has been uploaded to a directory under today’s

Using django-cms, how can I allow the user to specify a background image

本秂侑毒 提交于 2020-01-11 03:12:08
问题 I am creating a django-cms site for a client. I would like to do something like: <body style="background-image:url({% placeholder background-image %});"> The desired effect is to have a place where the user of the CMS can select a background image for a page. Ideally, they would choose an existing picture using something like Filer . Is there a way to do this? 回答1: Paulo is right, the first step is to configure a placeholder so that it can only take at most one image plugin, in this case,