与Lighttpd fastcgi匹配的django url
我有一个URL的问题。 我可以访问djando应用程序主页(localhost / djangotest /),但不能访问pipe理部分(localhost / djangotest / admin /)。 我可以使用django服务器而不是lighttpd访问它。 Lighttp conf: fastcgi.server = ( "/djangotest/" => ( "main" => ( "host" => "127.0.0.1", "port" => 3033, "check-local" => "disable", ) ), ) url.rewrite-once = ( "^(/media.*)$" => "$1", "^/favicon\.ico$" => "/media/favicon.ico", "^/djangotest/[^?](.*)$" => "/djangotest/?$1", ) Django的url.py只是:(我只是取消注释好行): from django.conf.urls.defaults import patterns, include, url from […]