如何在Windows Vista中取消设置DJANGO_SETTINGS_MODULE? [英] How to unset DJANGO_SETTINGS_MODULE in Windows Vista?
问题描述
解决方法似乎在这里: http://code.djangoproject.com / ticket / 11980
我的问题是如何取消设置 DJANGO_SETTINGS_MODULE
对于Vista或7,您应该有 setx
命令。以下命令应该删除 DJANGO_SETTINGS_MODULE
环境变量:
setx DJANGO_SETTINGS_MODULE
您可能需要添加 / M
在命令结束时标记。
setx
只能将变量设置为空,而不是删除它。因此,如果将其设置为空,则不起作用,您可以尝试使用GUI 。我只是不知道那是Vista或Windows 7。
I have this problem here: Help with Django Installation
The workaround seems to be here: http://code.djangoproject.com/ticket/11980
My problem is how do I unset the DJANGO_SETTINGS_MODULE
With Vista or 7, you should have the setx
command. The following command should remove the DJANGO_SETTINGS_MODULE
environment variable:
setx DJANGO_SETTINGS_MODULE ""
You may need to add the /M
flag at the end of the command.
The setx
can only set the variable to empty, not delete it. So if setting it to empty does not work, you could try using the GUI. I'm just not sure if that's Vista or Windows 7.
这篇关于如何在Windows Vista中取消设置DJANGO_SETTINGS_MODULE?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!