个人博客地址——https://www.dogebug.cn/
GitHub地址——https://github.com/yanshigou/
layout: post
title: Django下error:No module named ‘django.core.context_processors’
description:
date: 2018-09-13 16:41:00
categories:
comments: true
tags:
- Django
- Error
在Django项目中更改setting配置中 context_processors报错
ModuleNotFoundError: No module named 'django.core.context_processors'

- 因为我添加了一个
django.core.context_processors.media

- 是因为放context_processors的路径不一样
- 只需要把路径.core改为.template就ok了
django.template.context_processors.media

个人博客地址——https://www.dogebug.cn/
GitHub地址——https://github.com/yanshigou/
禁止不留原创地址、署名的转载
本人保留所有法定权利。违者必究
本文解决在Django项目中更改setting配置文件context_processors时遇到的ModuleNotFoundError问题,详细介绍了正确的路径设置方法。
1898

被折叠的 条评论
为什么被折叠?



