作者ilay (說唱猜做玩)
看板Python
標題[問題] django 跑不起來..
時間Sun Dec 16 12:01:42 2012
請教~
我要在 uwsgi 上跑一個 django project
但是只有首頁看得到東西 打開其他頁面都是噴 error 404
"No FlatPage matches the given query."
請問我該往哪個方向去處理? 謝謝
--
環境是 Debian Squeeze + pip 安裝的 uwsgi 和 Django 1.4
目前是用這邊的範例來測試
http://projects.unbit.it/uwsgi/wiki/Quickstart
[uwsgi]
# set the http port
http = :8000
# change to django project directory
chdir = /var/www/myapp
# load django
module = myapp.wsgi
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.33.253.178
→ qwertmn:鍵盤debug 也要有充分信息阿... 首頁顯示正常? 12/16 18:48
→ ilay:對 後來先把flatpage拿掉後就全正常了 還在找問題~"~ 12/17 13:50
→ qwertmn:不用uwsgi 用runserver 就正常~? 12/17 16:43
→ ilay:恩對 而且還發現admin沒辦法上傳檔案...~"~ 12/17 17:13
→ qwertmn:= =" 首頁正常..導向&傳檔有問題.. 檢查一下檔案權限.. 12/18 07:06
→ qwertmn:有可能是uwsgi 沒有權限.. 12/18 07:07