Comments (8)
It's not immediately clear from the official documentation that additional configuration of aldryn-boilerplates is needed in order for the installation to work, even though it is mentioned in the docs and a link is provided, but the mention is so brief that it's easily overlooked.
Perhaps it would be a good idea to include the following text snippet along with the link:
Configuration
Django 1.5 - 1.7
INSTALLED_APPS = [
...
'aldryn_boilerplates',
...
]
TEMPLATE_CONTEXT_PROCESSORS = [
...
'aldryn_boilerplates.context_processors.boilerplate',
]
STATICFILES_FINDERS = [
'django.contrib.staticfiles.finders.FileSystemFinder',
# important! place right before django.contrib.staticfiles.finders.AppDirectoriesFinder
'aldryn_boilerplates.staticfile_finders.AppDirectoriesFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
]
TEMPLATE_LOADERS = [
'django.template.loaders.filesystem.Loader',
# important! place right before django.template.loaders.app_directories.Loader
'aldryn_boilerplates.template_loaders.AppDirectoriesLoader',
'django.template.loaders.app_directories.Loader',
]
Now set the name of the Boilerplate you want to use in your project:
ALDRYN_BOILERPLATE_NAME = 'bootstrap3'
Django 1.8+
In general configuration stays the same but you should respect changes that were introduced by django 1.8. In particular in Django 1.8 context processors were moved from django.core to django.template.
Be sure to include aldryn_boilerplates to INSTALLED_APPS, adjust STATICFILES_FINDERS and finally configure TEMPLATES.
For TEMPLATES you need to add aldryn_boilerplates.context_processors.boilerplate to context_processors and alter loaders in the same way as we do it for Django versions prior to 1.8.
Note that in the example below we are altering the default values, so if you are using something that is custom - don't forget to add that too.
Here is an example of a simple configuration:
INSTALLED_APPS = [
...
'aldryn_boilerplates',
...
]
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'aldryn_boilerplates.staticfile_finders.AppDirectoriesFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
)
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'OPTIONS': {
'context_processors': [
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.i18n',
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.template.context_processors.media',
'django.template.context_processors.csrf',
'django.template.context_processors.tz',
'sekizai.context_processors.sekizai',
'django.template.context_processors.static',
'cms.context_processors.cms_settings',
'aldryn_boilerplates.context_processors.boilerplate',
],
'loaders': [
'django.template.loaders.filesystem.Loader',
'aldryn_boilerplates.template_loaders.AppDirectoriesLoader',
'django.template.loaders.app_directories.Loader',
],
},
},
]
from aldryn-newsblog.
I got this issue too. The problem is with the https://pypi.python.org/pypi/aldryn-boilerplates/ configuration. Even after following the guidelines in the project. I still get the same error. One quick fix is to the copy the templates directory directly to your project's template directory.
from aldryn-newsblog.
I cannot reproduce this issue locally. Have you both followed the directions on the boilerplates repo: https://github.com/aldryn/aldryn-boilerplates/?
from aldryn-newsblog.
@mkoistinen I am running cms v3.0.12 and django 1.6.11.
Here is my template context processor:
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.i18n',
'django.core.context_processors.debug',
'django.core.context_processors.request',
'django.core.context_processors.media',
'django.core.context_processors.csrf',
'django.core.context_processors.tz',
'sekizai.context_processors.sekizai',
'django.core.context_processors.static',
'cms.context_processors.cms_settings',
'aldryn_boilerplates.context_processors.boilerplate',
)
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'aldryn_boilerplates.staticfile_finders.AppDirectoriesFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# 'django.contrib.staticfiles.finders.DefaultStorageFinder',
)
# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.Loader',
'aldryn_boilerplates.template_loaders.AppDirectoriesLoader',
'django.template.loaders.app_directories.Loader',
# 'django.template.loaders.eggs.Loader',
)
# Installed apps:
INSTALLED_APPS = (
'djangocms_admin_style',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.redirects',
'cms',
'menus',
'mptt',
'sekizai',
'djangocms_text_ckeditor',
'djangocms_style',
'djangocms_column',
'djangocms_file',
'djangocms_inherit',
'djangocms_link',
'djangocms_picture',
'djangocms_googlemap',
'djangocms_snippet',
'cmsplugin_twitter',
'aldryn_apphooks_config',
'aldryn_boilerplates',
'aldryn_categories',
'cmsplugin_filer_image',
'aldryn_newsblog',
'aldryn_people',
'aldryn_reversion',
'easy_thumbnails',
'filer',
'parler',
'reversion',
'taggit',
'sortedm2m',
'socialschools_site.apps.cmsplugin_demo',
'socialschools_site.apps.cmsplugin_question',
'socialschools_site.apps.cmsplugin_price',
'socialschools_site.apps.cmsplugin_feature',
'socialschools_site.apps.cmsplugin_testimonial',
'socialschools_site.apps.cmsplugin_faq',
'socialschools_site',
'pygeoip',
'socialschools_site.apps.geoip_redir',
'south',
)
from aldryn-newsblog.
What about this:
ALDRYN_BOILERPLATE_NAME = 'bootstrap3'
from aldryn-newsblog.
I get the same problem, with Django 1.7.0 and CMS 3.1.2. I do have the
ALDRYN_BOILERPLATE_NAME = 'bootstrap3'
line in my config. Has this been solved or just abandoned?
from aldryn-newsblog.
+1
from aldryn-newsblog.
@racamirko, @kelly-apollo, this was closed, because its not a real issue.
You have to do more than just put ALDRYN_BOILERPLATE_NAME = 'bootstrap3'
in your settings. You must also properly install aldryn-boilerplates. This includes entries in TEMPLATE_CONTEXT_PROCESSORS
, STATICFILES_FINDERS
, TEMPLATE_LOADERS
, and INSTALLED_APPS
sections of your settings. Please confirm you've done this and report back. If there is still an issue, we can re-open this.
from aldryn-newsblog.
Related Issues (20)
- Blog post list by author page title
- Create button on toolbar does not contain "Article" option HOT 2
- Missing breadcrumb for newly created post
- Bootstrap 4 boilerplate templates HOT 4
- django taggit dropped support for django <1.11 which is causing installation issues HOT 2
- Search data won`t be updated for specific plugins without context
- Adding NewsBlog apphook to page breaks login: 405 error HOT 2
- Is this repo maintained? HOT 6
- djangocms-link 2.2.1 breaks NewsBlog HOT 2
- Update translation files from Transifex HOT 1
- System check reported issues HOT 1
- Ignore me...
- 'NoneType' object has no attribute 'get_config' for page with added Newsblog menu
- FieldError: Invalid field name(s) for model Person: 'name'. HOT 1
- Author field for Add Article form uses integer values instead of friendly usernames
- 'CMSToolbar' object has no attribute 'edit_mode' HOT 5
- Untranslated articles shouldn’t show on Latest Articles plugin when hide_untranslated is set
- How to override aldryn-newsblog plugin's models.py and admin.py
- Exclude atricles from Navigation menu
- Latest master release? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aldryn-newsblog.