#9929: Admin form got a wrong action address via lighttpd with fastcgi.
----------------------------------+-----------------------------------------
Reporter: khsing | Owner: nobody
Status: new | Milestone:
Component: django.contrib.admin | Version: 1.0
Keywords: | Stage: Unreviewed
Has_patch: 0 |
----------------------------------+-----------------------------------------
I have done via this link
http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/
The login form is appeared, but the action of login form is wrong. here is
some configure files.
I think the action should be "/admin/", but I got "/nsman.fcgi/admin/".
why?
* lighttpd.conf
{{{
fastcgi.server = (
"/nsman.fcgi" => (
"main" => (
"socket" => djp + "/nsman/nsman.sock",
"check-local" => "disable",
)
),
)
alias.url = (
"/media/" => "/usr/local/python25/lib/python2.5/site-
packages/django/contrib/admin/media/",
)
url.rewrite-once = (
"^(/media.*)$" => "$1",
"^/favicon\.ico$" => "/media/favicon.ico",
"^(/.*)" => "/nsman.fcgi$1"
)
}}}
* urls.py
{{{
#!python
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^admin/(.*)', admin.site.root),
)
}}}
* login from section.
{{{
<div id="content-main">
<form action="/nsman.fcgi/admin/" method="post" id="login-form">
<div class="form-row">
<label for="id_username">Username:</label> <input type="text"
name="username" id="id_username" />
</div>
<div class="form-row">
<label for="id_password">Password:</label> <input type="password"
name="password" id="id_password" />
<input type="hidden" name="this_is_the_login_form" value="1" />
</div>
<div class="submit-row">
<label> </label><input type="submit" value="Log in" />
</div>
</form>
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/9929>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---