使用Django 1.9解除运行Django 1.8项目的模块错误 [英] Decouple module error running Django 1.8 project using Django 1.9
问题描述
当前,我正在使用最新版本的Django 1.9.我有一个用Django 1.8编写的项目
Currently, I am using latest version of Django 1.9. I have a project that is written in Django 1.8
当我尝试运行服务器时,遇到以下错误
When I tried to runserver, I encountered the following error
我不想降级到Django 1.8来运行该项目,该怎么办?
What should I do as I do not want to downgrade to Django 1.8 to run the project?
上面的问题是由于缺少python-decouple模块.安装解耦模块并尝试再次运行服务器后,它又给出了另一个错误.
The above problem is due to lack of python-decouple module. After I install decouple module and try to runserver again it gives another error.
推荐答案
出现此错误并不是因为您使用Django 1.9,而是因为当前未安装该模块.运行 pip install python-decouple
来安装模块.
It is not because you use Django 1.9 that you get that error, it is because that module is not install at the moment. Run pip install python-decouple
to install the module.
这篇关于使用Django 1.9解除运行Django 1.8项目的模块错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!