[Twisted-web] Problems with images and css

Alberto Trujillo alberto.trujillo at ucd.ie
Thu Sep 8 04:27:31 MDT 2005


Thank you Stefano, I going to check my references, althoug in my system 
and in the server I allways run the applicattion from the directory 
where is the .tac file. I know that the problem is related with the 
references, so I'll check it again.

Stefano Masini wrote:

>On 9/8/05, Alberto Trujillo <alberto.trujillo at ucd.ie> wrote:
>  
>
>>    child_styles = static.File('./templates/styles')
>>    child_images = static.File('./templates/images')
>>    
>>
>
>Since you're making relative references to files (by using the
>dot-slash './templates...'), are you sure that your twisted
>application on the server is run with the current working directory
>correctly set to the root of your application file system?
>If on your system you run the application with, say, twistd -noy
>server.tac, and on the server you run it with twistd -noy
>/myapp/server.tac, it would be no wonder if it didn't work. You wound
>have to first chdir /myapp, and then run twistd. Or, you change all
>the paths to absolute.
>
>that's my 2 cents, hope it helps,
>stefano
>
>_______________________________________________
>Twisted-web mailing list
>Twisted-web at twistedmatrix.com
>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>  
>




More information about the Twisted-web mailing list