-
Notifications
You must be signed in to change notification settings - Fork 35
installing aldryn-blog in django-cms breaks djangocms_link plugin #47
Comments
hey there, could you paste a link to the traceback ? (pastebin) |
Hello, |
so you only get this error when |
@czpython While we are at this discussion, when adding the select2 line at 'urls.py', in which section it is better to put it, at "patterns" or "i18n_patterns"? Would it make any difference in behaviour and functionality? Thank you and regards. |
@neaai personally I would put it in |
Hi, I ran into this same problem with the same fix, but only after a good bit of head scratching. I agree with @neaai that it should be in the docs somewhere, since following the CMS tutorial to the letter will lead all users down the same path. Seems it would be good to mention in both places. Thanks! |
This is very easy to reproduce. I discovered this by following the tutorial at:
"divio / django-cms-tutorial" where as an example at Step 6 of the tutorial, is used the installation of a blog app, the aldryn-blog app.
The link plugin works correctly until the completion of the steps described to install aldryn-blog. After that, any attempt to create a link using the plugin from the frontend editor, generates an error.
It would seem that the error actually is connected to django-select2 which is installed automatically when installing aldryn-blog.
I fixed this in my cms installation by modifying the project's "urls.py" file and adding the line:
url(r'^select2/', include('django_select2.urls')),
at the urlpatterns section.
Currently, my sections that deal with the urlpatterns is as follows:
=========== CUT ====================
urlpatterns = patterns('',
url(r'^sitemap.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': {'cmspages': CMSSitemap}}),
url(r'^select2/', include('django_select2.urls')),
)
urlpatterns += i18n_patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('cms.urls')),
)
============== CUT ==================
After this change, the link plugin works properly.
I don't know whether this is a documentation issue or something that has to be fixed in code.
But I hope it helps.
Regards.
The text was updated successfully, but these errors were encountered: