aldryn / aldryn-gallery Goto Github PK
View Code? Open in Web Editor NEWGallery
License: Other
Gallery
License: Other
Line 2 is: {% include slide_template with instance=none %}
Line 2 should be
{% include slide_template with instance=image %}
Otherwise the folder will not populate slides.
CSS/JS Issue
Hey
version 0.3.0 gives me the error
ImproperlyConfigured: CMS Plugins must define a render template or set render_plugin=False: <class 'aldryn_gallery.cms_plugins.SlideCMSPlugin'>
and I can solve it only when adding the line
render_template = False
to the SlideCMSPlugin
class in cms_plugins.py
. I am using Python 2.7 with Django 1.6.7 and the Django CMS 3.0.8.
Note that I also need to add the line to the SlideFolderCMSPlugin
class to get rid of the PluginAlreadyRegistered
error from #24
The following error is thrown:
AttributeError at /en/admin/cms/page/edit-plugin/90/
type object 'ForeignKey' has no attribute 'limit_choices_to'
The aldryn-boilerplate-bootstrap3 documentation says:
The Glyphicon icon set has been disabled in favour of the Font Awesome icon set.
Failed to load resource: the server responded with a status of 404 (Not Found) http://api-international-stage.us-iad-rs.aldryn.io/static/js/plugins/cl.gallery.min.js
Environment:
Request Method: GET
Request URL: http://api-international-stage.us-iad-rs.aldryn.io/en/
Django Version: 1.5.5
Python Version: 2.7.4
Installed Applications:
[u'django.contrib.auth',
u'django.contrib.contenttypes',
u'django.contrib.sessions',
u'django.contrib.sites',
u'django.contrib.messages',
u'djangocms_admin_style',
u'django.contrib.admin',
u'django.contrib.staticfiles',
u'cms',
u'menus',
u'mptt',
u'south',
u'djangocms_text_ckeditor',
u'djangocms_link',
u'djangocms_snippet',
u'djangocms_googlemap',
u'raven.contrib.django',
u'sekizai',
u'gunicorn',
u'cmscloud',
u'compressor',
u'filer',
u'easy_thumbnails',
u'social_tags',
u'aldryn_social_sharing',
u'aldryn_video',
u'aldryn_grid_foundation',
u'aldryn_style',
u'djangocms_text_ckeditor',
u'filer',
u'aldryn_gallery',
'polymorphic',
'cmsplugin_filer_file',
'cmsplugin_filer_image',
'reversion',
'django_select2']
Installed Middleware:
[u'django.contrib.sessions.middleware.SessionMiddleware',
u'django.middleware.transaction.TransactionMiddleware',
u'django.contrib.auth.middleware.AuthenticationMiddleware',
u'cmscloud.middleware.AccessControlMiddleware',
u'django.contrib.messages.middleware.MessageMiddleware',
u'django.middleware.locale.LocaleMiddleware',
u'django.middleware.common.CommonMiddleware',
u'django.middleware.csrf.CsrfViewMiddleware',
u'django.middleware.http.ConditionalGetMiddleware',
u'cms.middleware.language.LanguageCookieMiddleware',
u'cms.middleware.user.CurrentUserMiddleware',
u'cms.middleware.page.CurrentPageMiddleware',
u'cms.middleware.toolbar.ToolbarMiddleware',
'cmscloud.middleware.CurrentSiteMiddleware']
Template error:
In template /app/templates/aldryn_gallery/plugins/feature/gallery.html, error at line 9
Invalid filter: 'shuffle'
1 : {% extends "aldryn_gallery/plugins/gallery.html" %}
2 : {% load i18n static thumbnail sekizai_tags cms_tags %}
3 :
4 : {% block gallery %}
5 :
6 :
7 :
8 : {% if instance.shuffle %}
9 : {% for plugin in instance.child_plugin_instances|shuffle %}
10 : {% render_plugin plugin %}
11 : {% endfor %}
12 : {% else %}
13 : {% for plugin in instance.child_plugin_instances %}
14 : {% render_plugin plugin %}
15 : {% endfor %}
16 : {% endif %}
17 :
18 :
19 :
Traceback:
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
response = response.render()
self.content = self.rendered_content
content = template.render(context)
return self._render(context)
return self.nodelist.render(context)
bit = self.render_node(node, context)
return node.render(context)
return compiled_parent._render(context)
return self.nodelist.render(context)
bit = self.render_node(node, context)
return node.render(context)
return compiled_parent._render(context)
return self.nodelist.render(context)
bit = self.render_node(node, context)
return node.render(context)
return self.render_tag(context, **kwargs)
rendered_contents = nodelist.render(context)
bit = self.render_node(node, context)
return node.render(context)
return self.render_tag(context, **kwargs)
rendered_contents = nodelist.render(context)
bit = self.render_node(node, context)
return node.render(context)
result = block.nodelist.render(context)
bit = self.render_node(node, context)
return node.render(context)
result = block.nodelist.render(context)
bit = self.render_node(node, context)
return node.render(context)
result = block.nodelist.render(context)
bit = self.render_node(node, context)
return node.render(context)
return self.render_tag(context, **kwargs)
content = get_placeholder_content(context, request, page, name, inherit, nodelist)
content = render_placeholder(placeholder, context, name)
content.extend(render_plugins(plugins, context, placeholder, processors))
out.append(plugin.render_plugin(context, placeholder, processors=processors))
return render_plugin(context, instance, placeholder, template, processors, context.current_app)
content = render_to_string(template, context_instance=context)
t = get_template(template_name)
template, origin = find_template(template_name)
source, display_name = loader(name, dirs)
return self.load_template(template_name, template_dirs)
template = get_template_from_string(source, origin, template_name)
return Template(source, origin, name)
self.nodelist = compile_string(template_string, origin)
return parser.parse()
compiled_result = compile_func(self, token)
nodelist = parser.parse()
compiled_result = compile_func(self, token)
nodelist = parser.parse(('endblock',))
compiled_result = compile_func(self, token)
nodelist = parser.parse(('elif', 'else', 'endif'))
compiled_result = compile_func(self, token)
sequence = parser.compile_filter(bits[in_index+1])
return FilterExpression(token, self)
filter_func = parser.find_filter(filter_name)
raise TemplateSyntaxError("Invalid filter: '%s'" % filter_name)
Exception Type: TemplateSyntaxError at /en/
Exception Value: Invalid filter: 'shuffle'
Hi
I get the error PluginAlreadyRegistered: Cannot register <class 'aldryn_gallery.cms_plugins.GalleryCMSPlugin'>, a plugin with this name ('GalleryCMSPlugin') is already registered.
and just can't find out why. I got it working on another system but here I get the error and am clueless. Any idea?
Here is the full traceback:
Traceback (most recent call last):
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run
self.result = application(self.environ, self.start_response)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__
return self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 187, in __call__
self.load_middleware()
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 47, in load_middleware
mw_instance = mw_class()
File "/usr/local/lib/python2.7/dist-packages/django/middleware/locale.py", line 24, in __init__
for url_pattern in get_resolver(None).url_patterns:
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 365, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py", line 360, in urlconf_module
self._urlconf_module = import_module(self.urlconf_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
File "/var/www/secret/website/urls.py", line 9, in <module>
admin.autodiscover()
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py", line 29, in autodiscover
import_module('%s.admin' % app)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/cms/admin/__init__.py", line 11, in <module>
plugin_pool.plugin_pool.discover_plugins()
File "/usr/local/lib/python2.7/dist-packages/cms/plugin_pool.py", line 36, in discover_plugins
load('cms_plugins')
File "/usr/local/lib/python2.7/dist-packages/cms/utils/django_load.py", line 56, in load
get_module(app, modname, verbose, failfast)
File "/usr/local/lib/python2.7/dist-packages/cms/utils/django_load.py", line 40, in get_module
module = import_module(module_name)
File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 40, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/aldryn_gallery/cms_plugins.py", line 95, in <module>
plugin_pool.register_plugin(GalleryCMSPlugin)
File "/usr/local/lib/python2.7/dist-packages/cms/plugin_pool.py", line 93, in register_plugin
"registered." % (plugin, plugin_name)
PluginAlreadyRegistered: Cannot register <class 'aldryn_gallery.cms_plugins.GalleryCMSPlugin'>, a plugin with this name ('GalleryCMSPlugin') is already registered.
I've created a simple template and added it to a page;
{% extends "base.html" %}
{% load cms_tags menu_tags cache %}
{% block title %}{% page_attribute 'title' %}{% endblock title %}
{% block content %}
{% include "aldryn_gallery/plugins/standard/gallery.html" %}
{% endblock content %}
But when I add the plugin to the page I'm getting;
File "/Users/mwalker/Sites/vmlm/lib/python2.7/site-packages/django/template/context.py", line 65, in has_key
if key in d:
File "/Users/mwalker/Sites/vmlm/lib/python2.7/site-packages/django/template/context.py", line 70, in __contains__
return self.has_key(key)
File "/Users/mwalker/Sites/vmlm/lib/python2.7/site-packages/django/template/context.py", line 65, in has_key
if key in d:
RuntimeError: maximum recursion depth exceeded while calling a Python object
I only started working with django cms today, so is there some terribly basic mistake I'm making because I had this happen earlier when I was using the older cmsplugin_gallery.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.