Closed fvgoto closed 6 years ago
Installer used to be compatible with many versions of Django, we took then the lowest common denominator approach when adding django versions. This issue, though, has been completely missed when working on Django 1.10 Attached PR should resolve this, as well as having a better approach at new middleware classes
@yakky Wow! what a speed! Thanks!
In the meantime, I finally got rid of 'WSGIRequest' object has no attribute 'current_page'
, which is exactly what you PR'ed in the same go:
cms.middleware
are new-style middleware -compatible since 3.4.2
MIDDLEWARE
and MIDDLEWARE_CLASSES
in the settings.py
(as generated by djangocms-installer) seems only to take MIDDLEWARE
(disregarding MIDDLEWARE_CLASSES
)... This is not documented IMHO (NB: old-style is not mentioned anymore in dev
documentation). (Took me some time to see that there's two such thingies therein...)Tanks and Happy hacking!
thanks for your feedback I think I will release 0.9.6 today
Fixed in #305
After using djangocms-installer for a fresh project, my site shows an
ImportError: No module named context_processors
.Problem:
settings.py
generated by djangocms-installer containscontext_processors
that are wrongly taken fromdjango.core.context_processors
instead ofdjango.template.context_processors
for Django 1.8+. Manually replacingcore
bytemplate
fixes the ImportError.From Django documentation:
Sources: https://docs.djangoproject.com/en/1.8/ref/settings/#template-context-processors https://docs.djangoproject.com/en/1.8/ref/templates/api/#django.template.RequestContext
Djangocms-installer code point with old-style
django.core.context_processors
: https://github.com/nephila/djangocms-installer/blob/master/djangocms_installer/config/settings.py#L28Strange that this has not yet been updated since...
PS: The
context_processors
andloaders
lines in generatedsettings.py
have also a wrong indentation (except the first array element).Relevant bits of my context: