【问题标题】:Can't get django-registration to work (on Windows)无法让 django-registration 工作(在 Windows 上)
【发布时间】:2010-12-05 08:12:53
【问题描述】:

尝试将django-registration 添加到我的应用中。我已经安装了setup tools 来使用easy_install。我认为这行得通..

我运行 easy_install django-registation 并且 cmd 提示窗口闪烁,执行某些操作并关闭。我不认为这是一个错误。但是当我查看我的应用程序文件夹时,与 django-registration 没有任何关系。

有谁知道怎么回事? django-registration 文件应该出现在哪里?

(也用 django-profiles 试了一下,结果一模一样)

【问题讨论】:

  • 不要运行“easy_install django-registration”,而是运行“cmd”,然后输入“easy_install django-registration”。这样你就可以看到输出了。
  • 这就是我所做的,但它会打开另一个 cmd 窗口,该窗口会在关闭之前短暂闪烁。

标签: python django registration setuptools easy-install


【解决方案1】:

Django-registration 将安装在您的 python 路径中,而不是项目本身中。您可以通过输入 python 提示符并运行来查看它是否安装正确:

>>>import registration

如果您没有收到错误,则说明它正在运行并已安装。只需将“注册”添加到您的 INSTALLED_APPS。

【讨论】:

    猜你喜欢
    • 2011-09-01
    • 2012-03-04
    • 2011-12-09
    • 1970-01-01
    • 2018-03-25
    • 1970-01-01
    • 2012-09-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多