[英]Is it dangerous to develop a Django App on Windows 10 and run the production server on Ubuntu?
[英]django on production server(ubuntu)
我試圖將我的Web應用程序發送到生產服務器。 通過遵循本教程http://ijcdigital.com/blog/django-gunicorn-and-nginx-setup/,我的設置是django-gunicorn-nginx 。 我尚未安裝主管以進行檢查。 完美的配置設置沒有問題,我得到了Django歡迎頁面。 然后,我將應用程序加載到項目中。 然后我運行gunicorn_django --bind=127.0.0.1:8001
它顯示
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為什么會這樣? 為什么我現在無法安裝在安裝django之前成功安裝的PIL。
有人可以幫我嗎? 謝謝!
安裝python-dev軟件包,因為您沒有python的頭文件來編譯PIL。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.