List Info

Thread: Static files--I think?




Static files--I think?
user name
2006-11-23 17:57:40
OK, here's my simple cherrypy app. The main python file is
in the same
directory as my main css file--as seen below. When cherrypy
launches
(i.e. cherrypy.server.quickstart() and then
cherrypy.engine.start()),
my main index method returns some html with the css file
called out
(i.e.  <link href="app.css"
type="text/css" rel="stylesheet" />)
but
the html's style is not modified--as if the it doesn't see
the css
file. I've done lots of research and testing and I can't see
to get the
http://localhost:8080/ind
ex to work correctly. It return html but not
with the style changed. Even if I type http://localhost:8080/a
pp.css,
it's doesn't show up. Any ideas?

directory
     app.py
     app.css

Cherrypy 3.0.0 beta2


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "cherrypy-users" group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to
cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en

-~----------~----~----~----~------~----~------~--~---

Static files--I think?
user name
2006-11-23 19:43:19
I didn't see any mention that you had enabled the staticdir/staticfile tools.&nbsp; For all your static content needs, see:
http://www.cherrypy.org/wiki/StaticContent

Christian
http://www.dowski.com

On 11/23/06, Dax < daxwilsongmail.com">daxwilsongmail.com> wrote:

OK, here's my simple cherrypy app. The main python file is in the same
directory as my main css file--as seen below. When cherrypy launches
(i.e. cherrypy.server.quickstart() and then cherrypy.engine.start()),
my main index method returns some html with the css file called out
(i.e.&nbsp; <link href=";app.css&quot; type=";text/css&quot; rel="stylesheet&quot; />) but
the html's style is not modified--as if the it doesn't see the css
file. I've done lots of research and testing and I can't see to get the
http://localhost:8080/index to work correctly. It return html but not
with the style changed. Even if I type http://localhost:8080/app.css,
it's doesn't show up. Any ideas?

directory
&nbsp; &nbsp;  app.py
&nbsp; &nbsp;  app.css

Cherrypy 3.0.0 beta2






--~--~---------~--~----~------------~-------~--~----~
 ;You received this message because you are subscribed to the Google Groups "cherrypy-users&quot; group.
To post to this group, send email to cherrypy-usersgooglegroups.com
To unsubscribe from this group, send email to cherrypy-users-unsubscribegooglegroups.com
For more options, visit this group at http://groups-beta.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )