i use an apache to run my django instances. my apache doubles the django output.
so in developement i get this:
my response text
but on apache "production", this:
my response text 
my response text
my vhost config look like this:
<VirtualHost *>                                                                                              
    Alias /public /xxx/public                                          
    Redirect /robots.txt /public/robots.txt                                                              
    <Directory "/xxx">                                                        
        Order allow,deny                                                                             
        Allow from all                                                                               
    </Directory>                                                                                     
    ServerName www.xxx.de                                                                  
    ServerAlias *.xxx.de                                                                   
    SetHandler python-program                                                                      开发者_JS百科      
    PythonHandler django.core.handlers.modpython                                                         
    SetEnv DJANGO_SETTINGS_MODULE settings                                                               
    SetEnv PYTHON_EGG_CACHE '/tmp/python-eggs'                                                       
    PythonHandler django.core.handlers.modpython                                                     
    PythonDebug Off                                                                                  
    PythonPath "['', '/xxx'] + sys.pa
</VirtualHost>
i don't know whats wrong, do u know?
I do not know whether this is the issue, but you have PythonHandler written twice. Also, mod.wsgi is preferred to mod_python by many.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论