django-cms

Django form does not appear

爱⌒轻易说出口 提交于 2019-12-23 05:35:09
问题 I'm working with building a webpage with a form using Django's Form class. I've included some sample code snippets but my problem is that I've followed the Django docs and the tutorial in Djangobook but can't get my Form to actually display on the page. forms.py from django import forms class ResearchForm(forms.Form): fam_choices = ... spec_choices = ... family = forms.ChoiceField(choices=fam_choices, required=True) species = forms.ChoiceField(choices=spec_choices, required=True) views.py

Django-CMS plugin not appearing

空扰寡人 提交于 2019-12-22 10:37:25
问题 I'm deploying a Django website. All the custom plugins I have work on my computer (I can add them into a template block from the drop down.) but when I push the code out to the site, not all the plugins are available. The database tables are created, and if I import plugin_pool and call discover_plugins() and then get_all_plugins() the plugins all show up. So my question is, why aren't my plugins showing? Any ideas? 回答1: Is your app with the plugin ( cms_plugins.py file) in INSTALLED_APPS ?

django_cms ImproperlyConfigured: Error importing middleware cms.middleware.media

别等时光非礼了梦想. 提交于 2019-12-21 10:52:38
问题 I'm moving an application that uses django_cms from one server, where everything worked, to another and have spent the last 4 hours trying to find the cause of this error. A suggestions very welcome! mod_wsgi (pid=21972): Exception occurred within WSGI script '/var/www/vhosts/compdoctest.com/django/compdoc/django.wsgi'. Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 230, in __call__ self.load_middleware() File "/usr/lib/python2.5

django_cms ImproperlyConfigured: Error importing middleware cms.middleware.media

女生的网名这么多〃 提交于 2019-12-21 10:52:11
问题 I'm moving an application that uses django_cms from one server, where everything worked, to another and have spent the last 4 hours trying to find the cause of this error. A suggestions very welcome! mod_wsgi (pid=21972): Exception occurred within WSGI script '/var/www/vhosts/compdoctest.com/django/compdoc/django.wsgi'. Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 230, in __call__ self.load_middleware() File "/usr/lib/python2.5

How can I copy CMS pages from a development site to a live site?

纵然是瞬间 提交于 2019-12-21 03:01:16
问题 I've been integrating Django CMS to a Django project that has been in production already for over a year. As part of my development activities, I've converted to CMS pages those pages that used to be static content before I added Django CMS. My development database now contains pages that I would like to copy to the live site rather than require that project staff recreate these pages on the live site. I have searched the Django CMS documentation but did not find a command for this. I've also

How to use iframes in django-cms

做~自己de王妃 提交于 2019-12-20 01:44:12
问题 I am looking for a good solution to make it possible for endusers to insert iframes (Soundcloud) in a template placeholder. I thought about using the djangocms-txt-ckeditor plugin. In it documentation it says to use the configurable sanitizer to accomplish this: djangocms-text-ckeditor uses html5lib to sanitize HTML to avoid security issues >and to check for correct HTML code. Sanitisation may strip tags usesful for some >use cases such as iframe; you may customize the tags and attributes

django-cms + grappelli

依然范特西╮ 提交于 2019-12-19 14:42:13
问题 If anyone knows how to make django-cms play with grappelli, please give some tips 回答1: Well I've just gone through a fairly epic adventure, the story of which might be of some use to you. The end point of said adventure was getting django-cms 2.1.3 working with django-filebrowser-no-grappelli . Whilst that may sound in fact like the opposite of what you want, I ended up there because what I really wanted was to get django-cms working with filebrowser. Without grappelli though the standard

django-cms + grappelli

柔情痞子 提交于 2019-12-19 14:40:32
问题 If anyone knows how to make django-cms play with grappelli, please give some tips 回答1: Well I've just gone through a fairly epic adventure, the story of which might be of some use to you. The end point of said adventure was getting django-cms 2.1.3 working with django-filebrowser-no-grappelli . Whilst that may sound in fact like the opposite of what you want, I ended up there because what I really wanted was to get django-cms working with filebrowser. Without grappelli though the standard

Is it possible to host multiple django projects under the same domain?

人走茶凉 提交于 2019-12-18 05:24:18
问题 I need to put different Django projects with Django CMS under the same domain, for example: example.com/2012/ example.com/2014/ Normally I am using virtualenv and mod_wsgi for each domain/project. I will need different databases, media files, and Django versions. Putting projects under different subdomains is not an option here. Is it possible to do? How should I setup the server? Are there any caveats I should know? 回答1: Yes. You can configure Apache / mod_wsgi to rewrite URLs and to direct

Getting error while running django-cms demo page

爱⌒轻易说出口 提交于 2019-12-17 17:46:16
问题 I tried all of the procedure for installing django-cms, after that when i try to run a demo page i getting the below error. (djvenv2)shan@shan:~/workspace/projects/djvenv$ pip freeze Django==1.6.2 PIL==1.1.7 Pillow==2.4.0 South==0.8.4 argparse==1.2.1 dj-database-url==0.3.0 django-classy-tags==0.5.1 django-cms==3.0 django-mptt==0.6.0 django-sekizai==0.7 djangocms-admin-style==0.2.2 djangocms-installer==0.4.1 html5lib==0.999 six==1.6.1 wsgiref==0.1.2 (djvenv2)shan@shan:~/workspace/projects