1
我試圖將我的web應用程序發送到生產服務器。按照本教程http://ijcdigital.com/blog/django-gunicorn-and-nginx-setup/,我的設置是django-gunicorn-nginx。我還沒有安裝主管的檢查目的。在完美的配置設置中沒有問題,我得到了Django的歡迎頁面。然後我將我的應用程序加載到項目中。然後我跑gunicorn_django --bind=127.0.0.1:8001
這表明生產服務器上的django(ubuntu)
cover.backgroundmodel: "background": To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .
cover.backgroundmodel: "tmpbg": To use ImageFields, you need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/ .
2012-05-22 14:24:02 [15359] [INFO] Worker exiting (pid: 15359)
2012-05-23 00:54:02 [15360] [INFO] Booting worker with pid: 15360
2012-05-22 14:24:02 [15360] [INFO] Worker exiting (pid: 15360)
2012-05-23 00:54:02 [15349] [INFO] Handling signal: int
2012-05-23 00:54:02 [15349] [INFO] Shutting down: Master
但我已經成功地安裝了一切,包括PIL等圖片庫。有趣的是我讓我的項目在我的電腦上完美運行。但是我無法確定生產服務器中問題的原因。
我再次嘗試安裝pip install PIL
它顯示像這樣https://gist.github.com/2771119爲什麼會這樣?爲什麼我現在無法安裝PIL,現在我在安裝Django之前成功安裝了PIL。
任何人都可以幫助我嗎?謝謝!
謝謝!它正在工作:) – rnk
@rnk,請接受答案。 – Furbeenator
@Furbeenator爲什麼stackoverflow顯示**您可以接受x分鐘**的答案?這是一段美好的時光嗎? – rnk