Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chatserver example templates in Django 1.8+ #246

Open
morrisfranken opened this issue Sep 29, 2017 · 1 comment
Open

chatserver example templates in Django 1.8+ #246

morrisfranken opened this issue Sep 29, 2017 · 1 comment

Comments

@morrisfranken
Copy link

From Django 1.8 and onwards the TEMPLATE_* settings are depricated in settings.py, and will raise a TemplateDoesNotExist exception on those versions of Django. The following can be replaced:

TEMPLATE_DEBUG = ...
TEMPLATE_CONTEXT_PROCESSORS = ...
TEMPLATE_LOADERS = ...

with the following

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [],
        'APP_DIRS': True,
        'OPTIONS': {
            'context_processors': [
                'django.template.context_processors.debug',
                'django.template.context_processors.request',
                'django.contrib.auth.context_processors.auth',
                'django.contrib.messages.context_processors.messages',
                'ws4redis.context_processors.default',
            ],
        },
    },
]
@jrief
Copy link
Owner

jrief commented Sep 29, 2017

Thanks, it would be great, if you can provide a tested pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants