Re: Bare bones page may have config issues
Jack Eisenbach <[email protected]> Fri, 20 Dec 2019 07:11:43 -0800 (PST)
| Newsgroups | gmane.comp.python.cherrypy |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_189_796819882.1576854703698 Content-Type: multipart/alternative; boundary="----=_Part_190_1678031876.1576854703699" ------=_Part_190_1678031876.1576854703699 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Sviatoslav, I took a previous project and minimalized it as much as possible and=20 renamed it bb.py for barebones.py.=20 The lquickstart ine near the end of the file is: cherrypy.quickstart(BB(), '/'. 'bb.config') The bb.config file contains: [/] tools.sessions.on: True path =3D 'C:\\workspace\\CP' [/static] tools.staticdir.on : True tools.staticdir.root : "C:\\workspace\\CP\\" tools.staticdir.dir : "/workspace/CP/static" tools.staticfile.on =3D True tools.staticfile.filename =3D 'C:\workspace\CP\static\css\style.css' [/static/css] tools.staticdir.on : True tools.staticdir.root : "/workspace/CP/" tools.staticdir.dir : "workspace/CP/static/css/" I have looked at other examples and modified the above code numerous times= =20 with no success. Do you see anything obviously wrong with the config above? Thanks, jack On Friday, December 20, 2019 at 9:17:09 AM UTC-5, Sviatoslav Sydorenko=20 (@webknjaz) wrote: > > Hi Jack,=20 > > I think it's best to post text directly or use something like a GitHub = =20 > Gist or a regular repository on GitHub.=20 > It's hard to reason about things that aren't immediately visible in=20 > the mailing list archive.=20 > For example, one may want to add a comment to your code. It's=20 > impossible with an attachment but it's=20 > easy to do if there's some snippet in the previous email that can be=20 > quoted.=20 > > Here's an example:=20 > > def hello(world):=20 > > print(word)=20 > > The comment *here* would be that there's a typo in this line.=20 > > > return world=20 > > > Also, if the source is really big, it's better to come up with a=20 > minimal reproducer that would have way=20 > fewer lines and rip off all the unrelated parts to help everyone focus=20 > on important things.=20 > > =D0=BF=D1=82, 20 =D0=B3=D1=80=D1=83=D0=B4. 2019 =D0=BE 15:08 Jack Eisenba= ch <[email protected]=20 > <javascript:>> =D0=BF=D0=B8=D1=88=D0=B5:=20 > >=20 > > Hi,=20 > > I seem to be having issues when configuring Cherrypy. I created a bare= =20 > bones site that should display a jpeg from the static/images folder. It= =20 > should also format the page from details provided from the=20 > static/css/style.css page. The problems I have are: the image is not=20 > displayed and the background is not light Blue in color. I have attached= =20 > the 4 files. Thanks in advance for all assistance. i've been stuck for=20 > weeks trying to resolve these issues. I have not been able to find a bare= =20 > bones example using Cherrypy to do the above.=20 > > Kind regards, Please disregard my previous posts with similar question.= =20 > I had some typos in them.=20 > > Jack=20 > >=20 > > --=20 > > You received this message because you are subscribed to the Google=20 > Groups "cherrypy-users" group.=20 > > To unsubscribe from this group and stop receiving emails from it, send= =20 > an email to cherryp...-/[email protected] <javascript:>.=20 > > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/cherrypy-users/76fec327-d637-41af-bf87-= 206a9cfe4ae3%40googlegroups.com.=20 > > > > > --=20 > Cheers,=20 > Sviatoslav.=20 > > ---=20 > https://useplaintext.email/=20 > () ascii ribbon campaign - against html e-mail=20 > /\ www.asciiribbon.org - against proprietary attachments=20 > ---=20 > --=20 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 e= mail to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected] To view this discussion on the web visit https://groups.google.com/d/msgid/= cherrypy-users/e2a7b927-94f5-498e-91a5-24eef69bf65e%40googlegroups.com. ------=_Part_190_1678031876.1576854703699 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi Sviatoslav,<div>I took a previous project and minimaliz= ed it as much as possible and renamed it bb.py for barebones.py.=C2=A0</div= ><div>The lquickstart ine near the end of the file is:</div><div>cherrypy.q= uickstart(BB(), '/'. 'bb.config')</div><div>The bb.config f= ile contains:</div><div><br></div><div><div>[/]</div><div>tools.sessions.on= : True</div><div>path =3D 'C:\\workspace\\CP'</div><div><br></div><= div><br></div><div>[/static]</div><div>tools.staticdir.on : True</div><div>= tools.staticdir.root : "C:\\workspace\\CP\\"</div><div>tools.stat= icdir.dir : "/workspace/CP/static"</div><div>tools.staticfile.on = =3D True</div><div>tools.staticfile.filename =3D 'C:\workspace\CP\stati= c\css\style.css'</div><div><br></div><div>[/static/css]</div><div>tools= .staticdir.on : True</div><div>tools.staticdir.root : "/workspace/CP/&= quot;</div><div>tools.staticdir.dir : "workspace/CP/static/css/"<= /div></div><div><br></div><div><br></div><div>I have looked at other exampl= es and modified the above code numerous times with no success.</div><div>Do= you see anything obviously wrong with the config above?</div><div>Thanks,<= /div><div>jack</div><div><br></div><div><br></div><div><br>On Friday, Decem= ber 20, 2019 at 9:17:09 AM UTC-5, Sviatoslav Sydorenko (@webknjaz) wrote:<b= lockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;borde= r-left: 1px #ccc solid;padding-left: 1ex;">Hi Jack, <br> <br>I think it's best to post text directly or use something like a Git= Hub=C2=A0=C2=A0<br>Gist or a regular repository on GitHub. <br>It's hard to reason about things that aren't immediately visibl= e in <br>the mailing list archive. <br>For example, one may want to add a comment to your code. It's <br>impossible with an attachment but it's <br>easy to do if there's some snippet in the previous email that can b= e quoted. <br> <br>Here's an example: <br>> def hello(world): <br>> =C2=A0 =C2=A0 print(word) <br> <br>The comment *here* would be that there's a typo in this line. <br> <br>> return world <br> <br> <br>Also, if the source is really big, it's better to come up with a <br>minimal reproducer that would have way <br>fewer lines and rip off all the unrelated parts to help everyone focus <br>on important things. <br> <br>=D0=BF=D1=82, 20 =D0=B3=D1=80=D1=83=D0=B4. 2019 =D0=BE 15:08 Jack Eisen= bach <<a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-mailto=3D= "tKOFVtvGAAAJ" rel=3D"nofollow" onmousedown=3D"this.href=3D'javascript:= ';return true;" onclick=3D"this.href=3D'javascript:';return tru= e;">[email protected]</a>> =D0=BF=D0=B8=D1=88=D0=B5: <br>> <br>> Hi, <br>> I =C2=A0seem to be having issues when configuring Cherrypy. I crea= ted a bare bones site that should display a jpeg from the static/images fol= der. It should also format the page from details provided from the static/c= ss/style.css page. The problems I have =C2=A0are: the image is not displaye= d and the background is not light Blue in color. I have attached the 4 file= s. Thanks in advance for all assistance. i've been stuck for weeks tryi= ng to resolve these issues. I have not been able to find a bare bones examp= le using Cherrypy to do the above. <br>> Kind regards, Please disregard my previous posts with similar ques= tion. I had some typos in them. <br>> Jack <br>> <br>> -- <br>> You received this message because you are subscribed to the Google= Groups "cherrypy-users" group. <br>> To unsubscribe from this group and stop receiving emails from it, = send an email to <a href=3D"javascript:" target=3D"_blank" gdf-obfuscated-m= ailto=3D"tKOFVtvGAAAJ" rel=3D"nofollow" onmousedown=3D"this.href=3D'jav= ascript:';return true;" onclick=3D"this.href=3D'javascript:';re= turn true;">cherryp...@<wbr>googlegroups.com</a>. <br>> To view this discussion on the web visit <a href=3D"https://groups= .google.com/d/msgid/cherrypy-users/76fec327-d637-41af-bf87-206a9cfe4ae3%40g= ooglegroups.com" target=3D"_blank" rel=3D"nofollow" onmousedown=3D"this.hre= f=3D'https://groups.google.com/d/msgid/cherrypy-users/76fec327-d637-41a= f-bf87-206a9cfe4ae3%40googlegroups.com';return true;" onclick=3D"this.h= ref=3D'https://groups.google.com/d/msgid/cherrypy-users/76fec327-d637-4= 1af-bf87-206a9cfe4ae3%40googlegroups.com';return true;">https://groups.= google.com/d/<wbr>msgid/cherrypy-users/76fec327-<wbr>d637-41af-bf87-206a9cf= e4ae3%<wbr>40googlegroups.com</a>. <br> <br> <br> <br>--=20 <br>Cheers, <br>Sviatoslav. <br> <br>--- <br><a href=3D"https://useplaintext.email/" target=3D"_blank" rel=3D"nofoll= ow" onmousedown=3D"this.href=3D'https://www.google.com/url?q\x3dhttps%3= A%2F%2Fuseplaintext.email%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGe-4Tx= cmPpCpo9Wm1Wt7wDb1bJCw';return true;" onclick=3D"this.href=3D'https= ://www.google.com/url?q\x3dhttps%3A%2F%2Fuseplaintext.email%2F\x26sa\x3dD\x= 26sntz\x3d1\x26usg\x3dAFQjCNGe-4TxcmPpCpo9Wm1Wt7wDb1bJCw';return true;"= >https://useplaintext.email/</a> <br>() =C2=A0ascii ribbon campaign - against html e-mail <br>/\ =C2=A0<a href=3D"http://www.asciiribbon.org" target=3D"_blank" rel= =3D"nofollow" onmousedown=3D"this.href=3D'http://www.google.com/url?q\x= 3dhttp%3A%2F%2Fwww.asciiribbon.org\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCN= EWqNaVK4lg63geSbSBYdFWTzTrMA';return true;" onclick=3D"this.href=3D'= ;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.asciiribbon.org\x26sa\x3dD= \x26sntz\x3d1\x26usg\x3dAFQjCNEWqNaVK4lg63geSbSBYdFWTzTrMA';return true= ;">www.asciiribbon.org</a> =C2=A0 - against proprietary attachments <br>--- <br></blockquote></div></div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;cherrypy-users" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:cherrypy-users+unsubscribe-/[email protected]">cher= rypy-users+unsubscribe-/[email protected]</a>.<br /> To view this discussion on the web visit <a href=3D"https://groups.google.c= om/d/msgid/cherrypy-users/e2a7b927-94f5-498e-91a5-24eef69bf65e%40googlegrou= ps.com?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/= msgid/cherrypy-users/e2a7b927-94f5-498e-91a5-24eef69bf65e%40googlegroups.co= m</a>.<br /> ------=_Part_190_1678031876.1576854703699-- ------=_Part_189_796819882.1576854703698--