django-cms

django 1.5 extend the default User model or substitute it

泪湿孤枕 提交于 2019-12-30 10:24:07
问题 Env: Django 1.5.1 + Django CMS 2.4.1 + Zinnia latest + my custom apps + custom Django CMS plugin Basically I can extend the default Django (1.5.X) User model like Django Ribbit Tutorial on NetTuts+ or Substitute a completely customized model like Django Dev doc or Django2Scoops example in the paragraph: "Dealing With the User Model" To test I decided for Subclass AbstractUser From Django2Scoops book:"Choose this option if you like Django’s User model fields the way they are, but need extra .

How to add some extra fields to the page in django-cms? (in django admin panel)

[亡魂溺海] 提交于 2019-12-28 11:55:10
问题 I would like to add some extra fields to pages in django-cms (in django admin panel). How do this in the simplest way? 回答1: Create a new app (called extended_cms or something) and in models.py create the following: from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pagemodel import Page class ExtendedPage(models.Model): page = models.ForeignKey(Page, unique=True, verbose_name=_("Page"), editable=False, related_name='extended_fields') my_extra

Django CMS pages throwing 404 for users who are not logged in to the admin

佐手、 提交于 2019-12-25 11:30:11
问题 All the pages throw a 404 error on a site for users who are not logged in. But if I log in to the admin and go back to view the site, all the pages are fine and viewable. I've been using Django CMS for years and haven't come across this before. The only difference with this site is the default language is french, in my settings I have: LANGUAGES = [ ('fr', 'Francais'), ] as my LANGUAGES setting and here is my LANGUAGE_CODE LANGUAGE_CODE = 'fr' Here are my urls.py from django.conf.urls

Problems in hosting multiple Django cms projects under the same domain?

别说谁变了你拦得住时间么 提交于 2019-12-25 08:58:37
问题 I am a beginner, I do want to deploy multiple Django cms projects under the same domain. I achieved it by using apache 2.2 and mod_wsgi 4.5.3 the configuration is below. ServerName example.com WSGIDaemonProcess blog python-home=/home/rndbkw/project/virtualenv2.7 python-path=/home/rndbkw/project/djangocms WSGIScriptAlias /blog /home/rndbkw/project/djangocms/rnd/wsgi.py process-group=blog application-group=%{GLOBAL} WSGIDaemonProcess rnd python-home=/home/rndbkw/virtualenv2.7 python-path=/home

how to start integrating django-cms into existing project

回眸只為那壹抹淺笑 提交于 2019-12-25 02:58:46
问题 My purpose is to convert static pages (about us, contact us etc) in my existing project to admin editable pages. I have followed the instructions at the tutorial to get things started but don't seem to get any results. So far performing python manage.py cms check seems to indicate I got everything set up. But I don't seem to get the urls right. It says here You need to include the 'cms.urls' urlpatterns at the end of your urlpatterns. My urls are as follows: urlpatterns = patterns('', url(r'

django cms [aldryn newsblog] replace template for plugin

流过昼夜 提交于 2019-12-24 15:27:12
问题 I need to replace same plugin template on different subpages - e.g. on frontpage I need specific slider template for latest articles, in detail article I need small list, on search result without images etc. [note: everything about aldryn newsblog app - I don't mean my own plugin!] *(something like custom template per plugin instance) How to replace it ? Extending template is not quite what I need - inheritance is from bottom - from lower subtemplate to base.html - but that plugin have

Integrate existing blog code into Django-CMS?

偶尔善良 提交于 2019-12-24 10:54:09
问题 If I already have a blog app done with Django and I want to use it with my new Django CMS site, is it okay to simply drop it into my new Django CMS project as a decoupled app and match anything /blog/ to the blog app as apposed to a Django CMS plugin? I guess what I need to know is when is it best to write my Django app as a plugin vs an entire app? Thx JeffC 回答1: Yes, but you don't just drop it into the urls.py , instead you can write an AppHook to tie your blog's URL scheme to a particular

django-debug-toolbar with django-cms and Django 1.3

吃可爱长大的小学妹 提交于 2019-12-24 10:12:20
问题 I keep hitting an error when trying to use django-debug-toolbar and django-cms together. "MpttMeta has no attribute ' class '" I have a feeling it's something to do with the Mptt app bundled with Django CMS, but I'm not sure, and I've seen this on a few projects but I'm surprised I can't find a direct hit for the error message in Google so I thought I'd post here. I've tried using latest released version of debug toolbar, also the develop branch, and also dcramer's fork, but it's making no

django cms doesn't see static folder

久未见 提交于 2019-12-24 00:57:24
问题 I'm very new to Django....and after hours of fighting I manage to install django cms in a virtual env. Creating some template and adding some page to my cms. Now I 'm trying to add some css....and I have create a static folder with inside css folder and my style.css. But it seems my cms doesnt see the static folder and I have a 404 error if I try to go :8000/static/css/style.css In my setting.py I have this STATIC_ROOT = os.path.join(PROJECT_PATH, "static") STATIC_URL = "/static/" not sure

Django-CMS with Grappelli messed up the layout for admin cms pages

半腔热情 提交于 2019-12-23 06:06:05
问题 I just installed grappelli into a Django-CMS site by following the standard routine - pip install django-grappelli , add it to INSTALLED_APPS , add in the url pattern, then syncdb and collectstatic . However, although all the other pages in the admin area look great with the new "theme", the layout for CMS Pages settings in Django-CMS (the drag 'n drop interface) are all messed up. Why is that, and is there a fix for this, yet? Thanks. EDIT: Thanks, Brandon for your reply. Is there a way to