[Twisted-web] RE: CSS link to stylesheet does not work in twisted

DJ d.a.abernathy at gmail.com
Mon Jul 21 17:53:00 EDT 2008


Hello Michael,

It worked !!!!
Thank you very much. !!!

On Fri, Jul 18, 2008 at 6:45 AM, Micha=B3 Pasternak <michal.dtz at gmail.com>
wrote:

> Dnia 2008-07-17, o godz. 09:54:15
> DJ <d.a.abernathy at gmail.com> napisa=B3(a):
>
> > Hello Again,
> >
> > I am using twisted.web.http to prototype a few webpages and link to my
> > stylesheet ( <link rel=3Dstylesheet type=3D"text/css"
> > href=3D"configstyle.css" />) does not work.
> > If I save the page has a standalone HTML file and open it in a browser
> > window, everything works fine, but not when I call it through twisted.
> > Does anyone know why and is there a workaround ?
>
> You need to add static.File child to your root resource. Read about
> addChild method of rend.Page .
>
> --
>  m
>
> _______________________________________________
> Twisted-web mailing list
> Twisted-web at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
>



-- =

Dafina A. Abernathy (DJ)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-web/attachments/20080721/dd=
6c87cf/attachment.htm


More information about the Twisted-web mailing list