datadesk / django-bigbuild

The open-source engine that powers bigbuilder, the Los Angeles Times Data Desk's system for publishing standalone pages
http://www.latimes.com/projects/
MIT License
24 stars 0 forks source link

Could the page and retired directories be added to the templates setting automatically when the app is installed? #21

Closed palewire closed 7 years ago

palewire commented 7 years ago

It's kind of a pain that users have to install the templates manually ala:


TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [BIGBUILD_PAGE_DIR, BIGBUILD_RETIRED_DIR],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'bigbuild.context_processors.environment',
                'config.toolbox.context_processors.now',
                'config.toolbox.context_processors.base_url',
                'config.toolbox.context_processors.git_branch',
            ],
        },
    },
]```
palewire commented 7 years ago

Could these settings be hardcoded into the get_template options of the views? That might do it.

palewire commented 7 years ago

We might also be able to integrate the context_processors in the views.