Ticket #560 (new defect)

Opened 2 years ago

Last modified 23 months ago

"bin-environment" cannot override current valu

Reported by: yejun Owned by: jan
Priority: normal Milestone:
Component: mod_fastcgi Version: 1.4.10
Severity: normal Keywords:
Cc: Blocked By:
Need User Feedback: Blocking:

Description

Inside mod_fastcgi settings, if a value already exists in enviroment, "bin-environment" will fail. example setting is following.

fastcgi.server = ( "/dj.py" => (
                      "test1" => ("host" => "127.0.0.1",
                                "port" => 1026,
                                "bin-environment" => (
                                "DJANGO_SETTINGS_MODULE" => "dj.settings",
                                "PYTHONPATH" => "/var/www" ),
                                )
                           )
                   )

This setting will not properly insert correct PYTHONPATH into environment, because PYTHONPATH already exists.

unset PYTHONPATH
/etc/init.d/lighttpd start

This will have the problem fix. If this behavior is desired, a proper warning also should be given.

Attachments

Change History

Changed 2 years ago by anonymous

[http:

Add/Change #560 ("bin-environment" cannot override current valu)

Author



Change Properties
<Author field>
Action
as new
 
Note: See TracTickets for help on using tickets.