Re: Cherrypy support HTML/CSS3 fully?
Tim Roberts <[email protected]> Wed, 16 Aug 2017 09:28:12 -0700
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Organization | Providenza & Boekelheide, Inc. |
| Message-ID | <[email protected]> |
matt Gerwen van wrote: > > I'm starting with cherrypy and discovered that making html-files and > loading them with open(file).read is not the right way to go, however > have seen some code that seems to work as basepage. You certainly CAN handle pages by reading and copying HTML files. It's more common to read template files and customize them using one of the template packages, but the concept is exactly the same. > My question is: I'm trying to create a button with a background image > nor in html or in CSS3 works. Is this the limitations of cherrypy or > what do i wrong? I have tried different solutions and codes, help > would be appreciated. Honestly, without seeing your code, how can we have any possible hope of answering this question? There are a thousand things you could have done wrong. CherryPy can certainly deliver files, so it is a bit much for you to blame the tool first. The code you posted is going to send a request to your server for /static/images/login.png. Do you have code and configuration in your server to handle that request? If not, then you can hardly be surprised that the image wasn't presented. -- Tim Roberts, [email protected] Providenza & Boekelheide, Inc. -- You received this message because you are subscribed to the Google Groups "cherrypy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected] Visit this group at https://groups.google.com/group/cherrypy-users. For more options, visit https://groups.google.com/d/optout.