Last active
June 5, 2016 00:16
-
-
Save mdford/9b9ea623619d405f3f7bcf03fc4801bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from aldryn_newsblog.models import NewsBlogLatestArticlesPlugin | |
from cms.plugin_pool import plugin_pool | |
from django.utils.translation import ugettext_lazy as _ | |
@plugin_pool.register_plugin | |
class FooterNewsBlogLatestArticlesPlugin(NewsBlogLatestArticlesPlugin): | |
render_template = 'aldryn_newsblog/plugins/footer_latest_articles.html' | |
name = _('Footer Latest Articles') | |
def render(self, context, instance, placeholder): | |
context = super(NewsBlogLatestArticlesPlugin, self).render(context, instance, placeholder) | |
return context | |
./manage.py runserver | |
Unhandled exception in thread started by <function wrapper at 0x7feaa998f9b0> | |
Traceback (most recent call last): | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 229, in wrapper | |
fn(*args, **kwargs) | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 107, in inner_run | |
autoreload.raise_last_exception() | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 252, in raise_last_exception | |
six.reraise(*_exception) | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/django/utils/autoreload.py", line 229, in wrapper | |
fn(*args, **kwargs) | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/django/__init__.py", line 18, in setup | |
apps.populate(settings.INSTALLED_APPS) | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/django/apps/registry.py", line 115, in populate | |
app_config.ready() | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/django/contrib/admin/apps.py", line 22, in ready | |
self.module.autodiscover() | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/django/contrib/admin/__init__.py", line 24, in autodiscover | |
autodiscover_modules('admin', register_to=site) | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/django/utils/module_loading.py", line 74, in autodiscover_modules | |
import_module('%s.%s' % (app_config.name, module_to_search)) | |
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module | |
__import__(name) | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/cms/admin/__init__.py", line 11, in <module> | |
plugin_pool.plugin_pool.discover_plugins() | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/cms/plugin_pool.py", line 32, in discover_plugins | |
load('cms_plugins') | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/cms/utils/django_load.py", line 61, in load | |
get_module(app, modname, verbose, failfast) | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/cms/utils/django_load.py", line 45, in get_module | |
module = import_module(module_name) | |
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module | |
__import__(name) | |
File "/home/mford/projects/vibrancy/vibrancy/cms_plugins.py", line 7, in <module> | |
class FooterNewsBlogLatestArticlesPlugin(NewsBlogLatestArticlesPlugin): | |
File "/home/mford/.virtualenvs/vibrancy/local/lib/python2.7/site-packages/cms/plugin_pool.py", line 106, in register_plugin | |
% plugin | |
django.core.exceptions.ImproperlyConfigured: CMS Plugins must be subclasses of CMSPluginBase, <class 'vibrancy.cms_plugins.FooterNewsBlogLatestArticlesPlugin'> is not. | |
aldryn-apphooks-config (0.2.7) | |
aldryn-boilerplates (0.7.4) | |
aldryn-categories (1.0.3) | |
aldryn-common (1.0.3) | |
aldryn-newsblog (1.2.2) | |
aldryn-people (1.2.1) | |
aldryn-reversion (1.0.9) | |
aldryn-translation-tools (0.2.1) | |
argparse (1.2.1) | |
Babel (2.3.4) | |
backport-collections (0.1) | |
dj-database-url (0.4.1) | |
Django (1.8.13) | |
django-appdata (0.1.5) | |
django-classy-tags (0.7.2) | |
django-cms (3.2.5) | |
django-filer (1.2.0) | |
django-formtools (1.0) | |
django-mptt (0.8.4) | |
django-parler (1.6.3) | |
django-phonenumber-field (1.1.0) | |
django-polymorphic (0.9.2) | |
django-reversion (1.8.7) | |
django-sekizai (0.9.0) | |
Django-Select2 (4.3.2) | |
django-sortedm2m (1.3.0) | |
django-taggit (0.19.1) | |
django-treebeard (4.0.1) | |
djangocms-admin-style (1.2.0) | |
djangocms-column (1.6.0) | |
djangocms-file (1.0) | |
djangocms-googlemap (0.4.0) | |
djangocms-inherit (0.2.1) | |
djangocms-installer (0.8.9) | |
djangocms-link (1.7.2) | |
djangocms-picture (0.2.0) | |
djangocms-style (1.7.0) | |
djangocms-teaser (0.2.0) | |
djangocms-text-ckeditor (2.9.3) | |
djangocms-video (1.0.0) | |
easy-thumbnails (2.3) | |
html5lib (0.9999999) | |
lxml (3.6.0) | |
MySQL-python (1.2.5) | |
phonenumbers (7.4.1) | |
phonenumberslite (7.4.1) | |
Pillow (3.2.0) | |
pip (1.5.4) | |
python-dateutil (2.5.3) | |
python-slugify (1.2.0) | |
pytz (2016.4) | |
setuptools (2.2) | |
six (1.10.0) | |
tzlocal (1.2.2) | |
Unidecode (0.04.19) | |
wsgiref (0.1.2) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment