Try FORCE_SCRIPT_NAME="" I use it and it works nicely

James




On Thu, Aug 21, 2008 at 9:00 AM, Nick Clarey <[EMAIL PROTECTED]>wrote:

>
> Hi all,
>
> I've been getting my site ported over to 1.0 beta and ran into a
> problem. Basically everything works fine when I follow the
> instructions except logging into the admin site. The source for the
> admin login page shows that the login form submits data to "//admin/";
>
> <form action="//admin/" method="post" id="login-form">
>
> Which is obviously not right; on e.g. Safari it tries to log me into
> http://admin/ which is not going to work! What magic do I need to
> invoke in order to get the admin site working?
>
> Relevant snippet of lighttpd.conf (names changed to protect the
> innocent);
>
> $HTTP["host"] == "bananas.com" {
>         server.document-root = "/home/bananas/www/websites"
>         fastcgi.server = (
>                 "/site.fcgi" => (
>                 "main" => (
>                 # Use host / port instead of socket for TCP fastcgi
>                 # "host" => "127.0.0.1",
>                 # "port" => 3033,
>                 "socket" => "/home/bananas/django.sock",
>                 "check-local" => "disable",
>                         )
>                 ),
>         )
>
>         alias.url = (
>                 "/media/" => "/home/bananas/usr/local/lib/python2.4/
> site-packages/django/contrib/admin/media/",
>                 "/site_media/" => "/home/bananas/www/websites/media/"
>         )
>
>         url.rewrite-once = (
>                 "^(/media.*)$" => "$1",
>                 "^(/site_media.*)$" => "$1",
>                 "^/favicon\.ico$" => "/media/favicon.ico",
>                 "^(/.*)$" => "/site.fcgi$1",
>         )
>
>         accesslog.filename = env.HOME + "/lighttpd/stage-access.log"
> }
>
> urls.py;
>
>     # Uncomment this for admin:
>     (r'^admin/(.*)', admin.site.root),
>
> and settings.py has FORCE_SCRIPT_NAME="/" as per instructions given in
> other threads.
>
> Help?
>
> Regards,
>
> Nick
>
> --
> Nick Clarey
> CEO, Airsource Ltd.
> Phone: +44-1223-708370
> Fax : +44-1223-721295
>
> >
>


-- 
http://www.goldwatches.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to