Django CMS 4.1.x Documentationa django CMS version 3 database. This can lead to corruption since the data structures for the CMSPlugin models are different. Warning Do not add CMS_CONFIRM_VERSION4 = True to your django CMS version class; these all inherit from the cms.models.pluginmodel.CMSPlugin base class. Note django CMS plugins inherit from cms.models.pluginmodel.CMSPlugin (or a sub- class thereof) and not models.Model [https://docs plugin class: from django.db import models from cms.models import CMSPlugin from polls.models import Poll class PollPluginModel(CMSPlugin): poll = models.ForeignKey(Poll, on_delete=models.CASCADE)0 码力 | 518 页 | 1.66 MB | 6 月前3
django cms 3.3.x Documentationfollowing: from django.db import models from cms.models import CMSPlugin from polls.models import Poll class PollPluginModel(CMSPlugin): poll = models.ForeignKey(Poll) def __str__(self): # use using Python 2 return self.poll.question Note django CMS plugins inherit from cms.models.CMSPlugin (or a sub-class thereof) and not models.Model [https://docs.djangoproject.com/en/dev/ref/models/instances/#django file and image management django-filer plugins for django CMS [https://github.com/stefanfoulis/cmsplugin-filer], required to use Django Filer with django CMS Pillow [https://github.com/python-imaging/Pillow]0 码力 | 386 页 | 1.56 MB | 1 年前3
Django CMS 3.11.10 Documentationa django CMS version 3 database. This can lead to corruption since the data structures for the CMSPlugin models are different. Warning Do not add CMS_CONFIRM_VERSION4 = True to your django CMS version class; these all inherit from the cms.models.pluginmodel.CMSPlugin base class. Note django CMS plugins inherit from cms.models.pluginmodel.CMSPlugin (or a sub- class thereof) and not models.Model [https://docs plugin class: from django.db import models from cms.models import CMSPlugin from polls.models import Poll class PollPluginModel(CMSPlugin): poll = models.ForeignKey(Poll, on_delete=models.CASCADE)0 码力 | 493 页 | 1.44 MB | 6 月前0.03
django cms 3.7.x Documentationfollowing: from django.db import models from cms.models import CMSPlugin from polls.models import Poll class PollPluginModel(CMSPlugin): poll = models.ForeignKey(Poll, on_delete=models.CASCADE) class; these all inherit from the cms.models.pluginmodel.CMSPlugin base class. Note django CMS plugins inherit from cms.models.pluginmodel.CMSPlugin (or a sub- class thereof) and not models.Model [https://docs using the same frontend editing as the CMS pages. Placeholders can be viewed as containers for CMSPlugin instances, and can be used outside the CMS in custom applications using the PlaceholderField. By0 码力 | 409 页 | 1.67 MB | 1 年前3
Django CMS 3.9.x Documentationfollowing: from django.db import models from cms.models import CMSPlugin from polls.models import Poll class PollPluginModel(CMSPlugin): poll = models.ForeignKey(Poll, on_delete=models.CASCADE) class; these all inherit from the cms.models.pluginmodel.CMSPlugin base class. Note django CMS plugins inherit from cms.models.pluginmodel.CMSPlugin (or a sub- class thereof) and not models.Model [https://docs using the same frontend editing as the CMS pages. Placeholders can be viewed as containers for CMSPlugin instances, and can be used outside the CMS in custom applications using the PlaceholderField. By0 码力 | 417 页 | 1.68 MB | 6 月前3
Django CMS 3.8.x Documentationfollowing: from django.db import models from cms.models import CMSPlugin from polls.models import Poll class PollPluginModel(CMSPlugin): poll = models.ForeignKey(Poll, on_delete=models.CASCADE) class; these all inherit from the cms.models.pluginmodel.CMSPlugin base class. Note django CMS plugins inherit from cms.models.pluginmodel.CMSPlugin (or a sub- class thereof) and not models.Model [https://docs using the same frontend editing as the CMS pages. Placeholders can be viewed as containers for CMSPlugin instances, and can be used outside the CMS in custom applications using the PlaceholderField. By0 码力 | 413 页 | 1.67 MB | 6 月前3
django cms 3.5.x Documentationfollowing: from django.db import models from cms.models import CMSPlugin from polls.models import Poll class PollPluginModel(CMSPlugin): poll = models.ForeignKey(Poll) def __unicode__(self): return self.poll.question Note django CMS plugins inherit from cms.models.pluginmodel.CMSPlugin (or a sub- class thereof) and not models.Model [https://docs.djangoproject.com/en/1.10/ref/mod information And so to build your plugin, you’ll make it from: a sub-class of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances a sub-class of cms.plugin_base.CMSPluginBase0 码力 | 403 页 | 1.69 MB | 1 年前3
django cms 3.4.x Documentationfollowing: from django.db import models from cms.models import CMSPlugin from polls.models import Poll class PollPluginModel(CMSPlugin): poll = models.ForeignKey(Poll) def __unicode__(self): return self.poll.question Note django CMS plugins inherit from cms.models.pluginmodel.CMSPlugin (or a sub- class thereof) and not models.Model [https://docs.djangoproject.com/en/1.10/ref/mod information And so to build your plugin, you’ll make it from: a sub-class of cms.models.pluginmodel.CMSPlugin to store the configuration for your plugin instances a sub-class of cms.plugin_base.CMSPluginBase0 码力 | 395 页 | 1.64 MB | 1 年前3
django cms 2.2.x Documentation[https://github.com/stefanfoulis/django-filer] with its django CMS plugins [https://github.com/stefanfoulis/cmsplugin-filer], file and image management application to use instead of some core plugins django-reversion [https://github.com/stefanfoulis/django-filer] with django CMS plugin [https://github.com/stefanfoulis/cmsplugin-filer] and its components instead of cms.plugins.file, cms.plugins.picture, cms.plugins.teaser and INSTALLED_APPS] but add those instead: 'filer' 'cmsplugin_filer_file' 'cmsplugin_filer_folder' 'cmsplugin_filer_image' 'cmsplugin_filer_teaser' 'cmsplugin_filer_video' If you opt for core plugins you should0 码力 | 105 页 | 679.29 KB | 1 年前3
Django CMS 2.4.x Documentationfile and image management django-filer plugins for django-cms [https://github.com/stefanfoulis/cmsplugin-filer], required to use Django Filer with django-cms Pillow [https://github.com/python-imaging/Pillow] django-sekizai==0.7 six==1.3.0 #Optional, recommended packages Pillow==2.0.0 django-filer==0.9.4 cmsplugin-filer==0.9.5 django-reversion==1.7 for Postgresql you would also add: psycopg2==2.5 and install com/stefanfoulis/django-filer] and its components with the django CMS plugin [https://github.com/stefanfoulis/cmsplugin-filer] instead of the cms.plugins.file, cms.plugins.picture, cms.plugins.teaser and cms.plugins0 码力 | 156 页 | 727.78 KB | 6 月前3
共 11 条
- 1
- 2













