如何在Windows Vista中取消设置DJANGO_SETTINGS_MODULE? [英] How to unset DJANGO_SETTINGS_MODULE in Windows Vista?

查看:159
本文介绍了如何在Windows Vista中取消设置DJANGO_SETTINGS_MODULE?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里遇到这个问题: Django安装帮助



解决方法似乎在这里: 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆