Skip to content

Shpaml does not seem to be compatible with Django 1.8/Python 2.7 at all. #20

@bschuon

Description

@bschuon

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,
        },
    },
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions