Hello.

I just started using Django and everything works fine when using the
built-in development server. But when I use the deployment server
(provided via lighthttpd) all links of my page get corrupted.
For example a "www.mysite.org/user" is now becoming a "www.mysite.org/
django.fcgi/user" when using the deployment server. So everytime a not
needed "django.fcgi" ends up in the url.
I guess it is cause of the django.conf I use for my lighthttpd (see
below), but I am not really sure (I am new to Django and lighthttpd).
Can someone give me a hint how I can solve that problem?

Regards,
Kai

$HTTP["host"] =~ "(^|\.)mysite\.sites\.myprovider\.com$" {
    fastcgi.server = (
        "/django.fcgi" => (
            "main" => (
                "socket" => env.HOME + "/mysite/mysite.sock",
                "check-local" => "disable",
            )
        ),
    )
    alias.url = (
        "/media" => env.HOME + "/mysite/media",
    )

    url.rewrite-once = (
        "^(/media.*)$" => "$1",
        "^/favicon\.ico$" => "/media/favicon.ico",
        "^(/.*)$" => "/django.fcgi$1",
    )
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to