When installing Shpaml in a Django 1.8/Python 2.7 system, as soon as the templates loaders settings is added, you get an error:
"Module "shpaml" does not define a "Loader" attribute/class"
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, "myproject", "templates")],
'OPTIONS': {
'context_processors': [
# Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this
# list if you haven't customized them:
'django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages',
'django.core.context_processors.request',
],
'loaders': [
('shpaml.Loader',
('django.template.loaders.filesystem.Loader',)
),
'django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader',
],
'debug': False,
},
},
]
When installing Shpaml in a Django 1.8/Python 2.7 system, as soon as the templates loaders settings is added, you get an error:
"Module "shpaml" does not define a "Loader" attribute/class"
TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [os.path.join(BASE_DIR, "myproject", "templates")], 'OPTIONS': { 'context_processors': [ # Insert your TEMPLATE_CONTEXT_PROCESSORS here or use this # list if you haven't customized them: 'django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.request', ], 'loaders': [ ('shpaml.Loader', ('django.template.loaders.filesystem.Loader',) ), 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader', ], 'debug': False, }, }, ]