2012-01-29 64 views
2

我想在Heroku上嘗試Django。我想用recaptcha註冊用戶。在Heroku上使用django註冊與recaptcha

Heroku recommends使用pip。 pip安裝django-registration 0.7,因爲這是最新發布的軟件包。 (0.8顯然已經在阿爾法4年?)。 django-recaptcha需要django-registration 0.8。當我pip安裝django-recaptcha時,它試圖用pip安裝django-registration,得到0.7,並且很傷心。

什麼是最簡單的維護?我是否應該不使用pip來下載這兩個tarball並將它們放在我的源代碼樹中?

我很驚訝用戶註冊與captchas是不光滑的框架,只要Django左右。

回答

1

您可以編輯requirements.txt文件採取Django的註冊回購的特定版本(「小費」是目前Django的註冊一個不錯的選擇):

替換該行你你要求文件,該文件是這樣的:

django-registration==0.7 

有:

hg+https://bitbucket.org/ubernostrum/django-registration/@tip 
+0

謝謝!如果該插件有效,我想要抓取該版本,直到我測試一個新版本。因此,我使用了hg + https://bitbucket.org/ubernostrum/django-registration/@fad7080fe769(此處用於格式化的空間)。請閱讀http://www.pip-installer.org/en/latest/requirements.html。 – dfrankow 2012-02-18 15:27:59