[GH-ISSUE #255] fix custom views #213

Closed
opened 2026-02-26 09:36:35 +03:00 by kerem · 1 comment
Owner

Originally created by @elnappo on GitHub (Jan 15, 2016).
Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/255

Originally assigned to: @ThomasWaldmann on GitHub.

seems to be a problem with django 1.8
see https://www.nsupdate.info/custom/news.html

Originally created by @elnappo on GitHub (Jan 15, 2016). Original GitHub issue: https://github.com/nsupdate-info/nsupdate.info/issues/255 Originally assigned to: @ThomasWaldmann on GitHub. seems to be a problem with django 1.8 see https://www.nsupdate.info/custom/news.html
kerem closed this issue 2026-02-26 09:36:35 +03:00
Author
Owner

@ThomasWaldmann commented on GitHub (Jan 15, 2016):

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [
            '/srv/nsupdate.info/templates',
        ],
        'APP_DIRS': True,
        '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.request',
                'nsupdate.context_processors.add_settings',
                'nsupdate.context_processors.update_ips',
                'django.template.context_processors.media',
                'django.template.context_processors.static',
                'django.template.context_processors.tz',
                'django.contrib.messages.context_processors.messages',
                'social.apps.django_app.context_processors.backends',
                'social.apps.django_app.context_processors.login_redirect',
            ],
            #'loaders': [
            #    'django.template.loaders.filesystem.Loader',
            #    'django.template.loaders.app_directories.Loader',
            #],
        },
    },
]

I also removed all TEMPLATE_* stuff from settings/*.

<!-- gh-comment-id:171968292 --> @ThomasWaldmann commented on GitHub (Jan 15, 2016): ``` TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [ '/srv/nsupdate.info/templates', ], 'APP_DIRS': True, '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.request', 'nsupdate.context_processors.add_settings', 'nsupdate.context_processors.update_ips', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages', 'social.apps.django_app.context_processors.backends', 'social.apps.django_app.context_processors.login_redirect', ], #'loaders': [ # 'django.template.loaders.filesystem.Loader', # 'django.template.loaders.app_directories.Loader', #], }, }, ] ``` I also removed all `TEMPLATE_*` stuff from `settings/*`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nsupdate.info-nsupdate-info#213
No description provided.