Am 27.01.2011 23:53, schrieb Carlos Ríos Vera:
> Hey René,
> but then, I tried this:
> 
> % spawn-fcgi -a 127.0.0.1 -p 9002 -- `which python`
> /home/lbfm/www/lbfm_web/index.py
> spawn-fcgi.c.197: child spawned successfully: PID: 32332

Is the index.py executable and has a shebang (i.e. is the first line
#!/usr/bin/python
or something similar)?

> but when I try to visualizate the app via browser, it doesn't
> recognize the /static/, so the css/js/imgs doesn't appears, and I have
> already configured nginx for this:
>
>    location /static/ {
>        root /home/lbfm/www/lbfm_web/static;
>        if (-f $request_filename){
>            rewrite ^/static/(.*)$  /static/$1 break;
>        }
>    }

I do not know nginx configuration -- but from simple understanding, I
would guess, that e.g. /static/bla.css is mapped to
/home/lbfm/www/lbfm_web/static/static/blas.css, as you have included the
"/static/" already in the root. This mapping might not be the intended
thing :).

- René

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to