django-cms

DoesNotExist at /en-us/ A template tag couldn't find the page with lookup arguments `{'reverse_id': u'home', 'site': 1} `

若如初见. 提交于 2019-12-11 01:58:12
问题 I am currently going through the django-cms-demo. I have been using the code found here: https://github.com/andrewschoen/django-cms-demo/tree/master/demo. I had this working prior to adding the Poll app plugin. I had been getting reverse matching errors when I add the Poll app plugin in the django-admin. After a couple of fixes, I started getting the error below: "A template tag couldn't find the page with lookup arguments {'reverse_id': u'home', 'site': 1} . The URL of the request was: 'http

django filer - ImportError: cannot import name mixins

怎甘沉沦 提交于 2019-12-11 01:54:34
问题 I have a django 1.4 installation and I have django-cms running. I'm try to install filer but when I syncdb or runserver I keep having this error. from filer.models import mixins ImportError: cannot import name mixins In my setting.py I have: INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', # Uncomment the next line to enable the admin: 'django.contrib.admin',

Displaying page content using django-page-cms

a 夏天 提交于 2019-12-10 23:33:11
问题 I would like to display some content located in my models in some of my template pages. I am using django-page cms In the documentation views are not used to display content. Instead ready made template tags are used. http://packages.python.org/django-page-cms/display-content.html I do not understand a word of this. Please Bear with me I am new. All I want to do is display some info located in my models inside a template this manner.. {% if latest_news_list %} {% for news in latest_news_list

How to display the site's user friendly name in a template in Django?

孤人 提交于 2019-12-10 19:24:54
问题 I am searching for a way to display my Django-CMS site name in a template. I created a basic Django-CMS site following this guide. The default site is named Example.com and I was able to change this name, from within the admin section, to "My Super Site". Following what, I tried to customize and apply a theme to it, following this guide. It suggests to use {{ request.site.name }} to display the name of the site on a page. However this turns up empty and so does {{ request.site }} . I searched

Django-CMS warning on django-mptt

自古美人都是妖i 提交于 2019-12-10 19:14:09
问题 I have a Django-CMS 2.4.1 project that always gives me the warning: DeprecationWarning: Implicit manager CMSPlugin.tree will be removed in django-mptt 0.6. Explicitly define a TreeManager() on your model to remove this warning. This only occurs in production - not in dev. I tried: ./manage.py cms fix-mptt which gives me the output (after the same warning as above): fixing mptt page tree fixing mptt plugin tree all done But... this does not solve the problem, e.g. if I repeat the command it

Restrict certain pages in Django-CMS

狂风中的少年 提交于 2019-12-10 18:10:43
问题 Disclaimer : I asked the question also at Google+, but I'm not sure how active the community there is I'm struggling with Django CMS' permissions, and the documentation remains unclear for me. I have the following requirements: All CMS pages should be available only for authenticated users Editing shall only be allowed to staff Some pages should be only visible to a certain group I don't find the way to achieve this. Could you point me to the right combination of settings? Here are some more

Django and Django CMS Error

帅比萌擦擦* 提交于 2019-12-10 15:29:00
问题 I've just done a fresh install of Django and Django-CMS from the ground up (including a brand new virtualenv and python build). I'm getting this bizzarre error.. google has been no help. Ideas? TemplateSyntaxError at / Caught AttributeError while rendering: 'str' object has no attribute 'regex' In template /Users/bdunlay/python/python-2.5/lib/python2.5/site-packages/django_cms2.1.0.beta3-py2.5.egg/cms/templates/cms/new.html, error at line 37 Here's the line: 37: <li>Log into <a href="{% url

Django- CMS: Plugin position in a placeholder

拟墨画扇 提交于 2019-12-10 15:18:10
问题 I was looking for a way to check the plugin's position within a placeholder in Django-CMS. I found this question Detect last plugin in a placeholder Is "plugin" a django cms keyword? I can't find documentation about it. My question is: How can I obtain information about the plugins rendered within a Placeholder? Thanks 回答1: if you don't override your plugins render method (2.4 and up), you'll have your plugin as instance in your context. using the following, you'll get the 1 based position of

Upgrading Django to 1.5 with Django-CMS - user model issue

亡梦爱人 提交于 2019-12-10 10:18:40
问题 I have just moved a site from Django-CMS 2.3.5 to 2.4.1 (with help from Stackoverflow) under Django 1.4. I am now upgrading to Django 1.5, which is only hard because I need to update the old separate user profile to a new custom user model. I followed the excellent instructions here, and also replaced all references to User with settings.AUTH_USER_MODEL . Unfortunately Django-CMS's models apparently still refer to User though: when I type manage.py runserver , I get this error: CommandError:

Django-CMS - Global placeholder?

被刻印的时光 ゝ 提交于 2019-12-10 04:35:06
问题 Is there any way to make global placeholder in my base template? I need it to be the same on every page (banners list). How can I do that? 回答1: I usually create a page in my CMS that isn't published, but contains placeholders that I would like to use elsewhere (footer/headers) etc. Make a new template extra_placeholders.html : {% extends "base.html" %} {% load cms_tags %} {% block content %} {% placeholder "Banner-List" %} {% endblock %} add it to your settings: CMS_TEMPLATES = ( ('my/path