{"id":3573,"date":"2014-03-28T11:02:08","date_gmt":"2014-03-28T11:02:08","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/28\/problem-about-django-cms-collection-of-common-programming-errors\/"},"modified":"2014-03-28T11:02:08","modified_gmt":"2014-03-28T11:02:08","slug":"problem-about-django-cms-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/28\/problem-about-django-cms-collection-of-common-programming-errors\/","title":{"rendered":"problem about django-cms-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6b320edee2bce02b811fd9ee2e1c487b?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nAlexG_1010100101<br \/>\npython django django-cms<br \/>\nI&#8217;m try to fix an app that worked with django 1.4 within a new installation where I&#8217;m using Django 1.5 when I try to syncdb I have:TypeError: __init__() got an unexpected keyword argument &#8216;verify_exists&#8217;That&#8217;s because my app model.py have inside:link = models.URLField(verify_exists=True, max_length=255, null=True, blank=True)with what I d replace &#8216;verify_exists&#8217; to make it compatible with Django1.5?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a4989b22d81a0bcb540782152e9d4bed?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLuke<br \/>\ndjango django-models django-queryset django-cms django-queries<br \/>\nI have an error using get_or_create on a queryset: &#8220;TypeError at &#8230; save() got an unexpected keyword argument &#8216;using&#8217; &#8220;. I&#8217;m using django 1.4.3, but looking around i found that those problems were fixed in django 1.2. this is the code section:class MailingListSubscriptionForm(forms.ModelForm):&#8221;&#8221;&#8221;Form for subscribing to a mailing list&#8221;&#8221;&#8221;# Notes : This form will not check the uniquess of# the &#8217;email&#8217; field, by defining it explictly and setting# it the Meta.exclude list, for allowing registration<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/37b8428bc200c1693c89a1bbae0ccfb7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nplumwd<br \/>\ndjango-templates django-registration django-cms<br \/>\nI&#8217;m currently working on a project that uses django-registration and Django CMS. When display the pages that implement django-registration my page titles do not render.Currently have &lt;title&gt;{% page_attribute page_title %}&lt;\/title&gt; in base.html which all my templates inherit from.In the pages that do not use django-registration the titles display just fine, but django-registration display as &lt;title&gt;&lt;\/title&gt;My pages are all created within the CMS and everything else is rend<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2c7f5b7b83ab0f148f2a9131407a2736?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nqdot<br \/>\ngoogle-app-engine django-nonrel django-cms<br \/>\nI&#8217;m trying to get the django-cms to work on google-app-engine. Did anyone succeed in getting such a beast to work?I&#8217;ve got a sample django-norel app to work and deploy correctly, I&#8217;ve got the django-cms to locally crash in a bunch of absolutely cryptic ways.DatabaseError at \/ First ordering property must be the same as inequality filter property, if specified for this query; received site, expected publisher_stateBefore I spend a lot of time trying to bughunt it, any success stories?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/6b320edee2bce02b811fd9ee2e1c487b?s=32&amp;d=identicon&amp;r=PG&amp;f=1\" \/><br \/>\nAlexG_1010100101<br \/>\ndjango-cms django-filer<br \/>\nI have a django 1.4 installation and I have django-cms running. I&#8217;m try to install filer but when I syncdb or runserver I keep having this error.from filer.models import mixinsImportError: cannot import name mixinsIn my setting.py I have:INSTALLED_APPS = ( &#8216;django.contrib.auth&#8217;, &#8216;django.contrib.contenttypes&#8217;, &#8216;django.contrib.sessions&#8217;, &#8216;django.contrib.sites&#8217;, &#8216;django.contrib.messages&#8217;, &#8216;django.contrib.staticfiles&#8217;, # Uncomment the next line to enable the admin: &#8216;django.contrib.admin&#8217;, &#8216;cms&#8217;, &#8216;m<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8d46be6df966277171a119ddda7a5515?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nBen Griffiths<br \/>\njquery django django-cms<br \/>\nI&#8217;ve got a django site running quite happily with django-cms but now I want to include some of my own fancy javascript using jQuery. I&#8217;m rather new to django, so my problems might stem from this.Django-cms uses jQuery itself, and so if I add jquery to the header &#8211; things break rathter unsurprisingly. How do I add my own jQuery without affecting django-cms?At the moment my javascript files are stored in the media root which I&#8217;ve defined in the projects settings.py and, as mentioned, I reference t<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/e831370d51caa206ad5bb756f2c6fde6?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nsupervacuo<br \/>\ndjango django-admin django-cms django-grappelli<br \/>\nI just installed grappelli into a Django-CMS site by following the standard routine &#8211; 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 &#8220;theme&#8221;, the layout for CMS Pages settings in Django-CMS (the drag &#8216;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 completely<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a4989b22d81a0bcb540782152e9d4bed?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLuke<br \/>\npython django django-admin django-cms django-file-upload<br \/>\ni have a problem with a local installation on django cms 2.3.3: i&#8217;ve installed it trough pip, in a separated virtualenv. next i followed the tutorial for settings.py configuration, i started the server. Then in the admin i created an page (home), and i&#8217;ve tried to add an image in the placeholder through the cmsplugin_filer_image, but the upload seems that doesn&#8217;t work. here&#8217;s my settings.py:# Django settings for cms1 project. # -*- coding: utf-8 -*- import os gettext = lambda s: s PROJECT_PATH =<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/c473444ec3bdd5f3ae1f695df320da20?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nRodrigo Guedes<br \/>\ndjango heroku amazon-s3 django-cms<br \/>\nI&#8217;ve a django project on heroku and amazon s3. I&#8217;m using django 1.4.2 and django-cms 2.3.4 My problem is that i can&#8217;t edit or add any plugins to pages. Yesterday it works perfect but after I have changed a few things in a textfield it all went wrong&#8230; The problem with the textfield is fixed now but i still can&#8217;t edit\/add any plugins. the only things I know are the following error-messages:Failed to load resource: the server responded with a status of 403 (Forbidden) Failed to load resource: th<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/a4989b22d81a0bcb540782152e9d4bed?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nLuke<br \/>\njavascript django tinymce django-cms django-tinymce<br \/>\ni&#8217;m using django-tinymce in a django project. After following the setup as suggested from docs, i&#8217;ve experienced some problems while deploying it. In fact, with the same settings, with development runserver, I got it working locally, but on a test machine (NGinx + Gunicorn), i have this error on console:Uncaught TypeError: undefined is not a function tiny_mce.js:1k.create.init tiny_mce.js:1(anonymous function) tiny_mce.js:1(anonymous function) tiny_mce.js:1c.each tiny_mce.js:1o tiny_mce.js:1(ano<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/d8accf8afa493b2df2d4abf68c08df4f?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nzsquare<br \/>\ndjango-cms django-filer<br \/>\nIve been trying to get ckeditor working with the CMS. I cant seem to get inline images working with filer. I&#8217;m trying to add an image from the list of cms plugins and can select the image from the list of images already uploaded, but on finally clicking &#8220;ok&#8221; in the popup, the image appears as &#8220;undefined&#8221; in the text area.Any pointers as to what might be going wrong?<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/gtFJ7.jpg?s=32&amp;g=1\" \/><br \/>\nalecxe<br \/>\ndjango django-cms django-filer<br \/>\nI want to upload images to media folder. But Filer by default uploads images to %Y\/ %m \/%d folders. I tried to change the FILER_STATICMEDIA_PREFIX but after changing the value, upload is not working. I also tried to modify the default FILER_STORAGES to change the UPLOAD_TO&#8217;s value but after that the images are not getting copied to clipboard. Showing undefined undefined. All I want is to store the images in the folder name (created in filer) instead of date wise folders.What should I do? Any<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/uqhlx.gif?s=32&amp;g=1\" \/><br \/>\nDan Hoerst<br \/>\ndjango django-cms<br \/>\nI&#8217;m really new to Django CMS.I created a virtual env, installed django cms, and I have two simple template with placeholders.I have installed django filer for file, image and folder. It s working but when I upload an image ..the image is actually uploaded I can see in media folder but on the django interface the thumbnails are undefined.I have installed easy_thumbnails but in the media folder I can&#8217;t see the &#8220;filer_public_thumbnails&#8221; folder.This may be similar problem to this: undefined uploads<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/0e7934d5f7dda30a62b71b0baf4da6e7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser1294886<br \/>\ndjango django-admin django-cms<br \/>\nI 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&#8217; \/ cmsplugin_filer_image it comes up as undefined in the clipboard area. It&#8217;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&#8217;s date in<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AlexG_1010100101 python django django-cms I&#8217;m try to fix an app that worked with django 1.4 within a new installation where I&#8217;m using Django 1.5 when I try to syncdb I have:TypeError: __init__() got an unexpected keyword argument &#8216;verify_exists&#8217;That&#8217;s because my app model.py have inside:link = models.URLField(verify_exists=True, max_length=255, null=True, blank=True)with what I d replace &#8216;verify_exists&#8217; to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-3573","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3573","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=3573"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/3573\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=3573"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=3573"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=3573"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}