[Fixed]-Django 1.6 Admin Page Overriding Not Working

1👍

I don’t know why you’re using Django 1.6, but the TEMPLATES dict syntax you quote is only for Django 1.8+. In previous versions, you need to specify all the options individually.

Also note you have wrongly surrounded the DIRS value with two list brackets.

   TEMPLATE_DIRS = [
        os.path.join(BASE_DIR, 'templates'),
   ]
   TEMPLATE_CONTEXT_PROCESSORS = [
            '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',
        ]
        TEMPLATE_LOADERS = [
            # insert your TEMPLATE_LOADERS here
            'django.template.loaders.filesystem.Loader',
            'django.template.loaders.app_directories.Loader',
        ]

Leave a comment