List Info

Thread: Newbie needs some hints




Newbie needs some hints
country flaguser name
United States
2007-10-16 16:02:30
Hi list,

I have just found cherrypy days ago and like the idea about
writing
webapps like I write me python apps.

BUT now I have been playing with it, trying to make a
Restful web
service. And is there some way of setting up logging so ALL
is been
logged. Because I feel a little blind when something goes
wrong.
Does anyone have an idea or I'm I missing something?

An other thing is, I using autoreload but I still have to
reload
apache before new things works. Is this because I am using
cherrypy in
apache?
And if is the case, can I make a script that manual reload
my cherrypy
app?


best regards

Marc


--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Newbie needs some hints
user name
2007-10-16 23:13:08
On 10/16/07, MarkyMarc <marcsgbrevkontogmail.com> wrote:
> I have just found cherrypy days ago and like the idea
about writing
> webapps like I write me python apps.

Excellent.  That is the beauty of CherryPy.

> BUT now I have been playing with it, trying to make a
Restful web
> service. And is there some way of setting up logging so
ALL is been
> logged. Because I feel a little blind when something
goes wrong.
> Does anyone have an idea or I'm I missing something?

Have you looked at http://www.cherr
ypy.org/wiki/Logging ?  If so, is
there a specific issue that you are having with some aspect
of the
logging system?

> An other thing is, I using autoreload but I still have
to reload
> apache before new things works. Is this because I am
using cherrypy in
> apache?

Hhhmmm, that's strange.  How are you hooking CherryPy up to
Apache?  I
use mod_proxy for some small sites, and autoreload works
fine.  I
think it totally bombs out if you use mod_python.

> And if is the case, can I make a script that manual
reload my cherrypy
> app?

Hmmm, I'm not sure.  I guess you could do what autoreload
does, but
manually.  I think that looking at the source of the
autoreload system
is your best bet if you need to create a manual
alternative.

HTH,

Christian
http://www.dowski.com

--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Newbie needs some hints
country flaguser name
United States
2007-10-17 00:59:42
> > BUT now I have been playing with it, trying to
make a Restful web
> > service. And is there some way of setting up
logging so ALL is been
> > logged. Because I feel a little blind when
something goes wrong.
> > Does anyone have an idea or I'm I missing
something?
>
> Have you looked athttp://www.cher
rypy.org/wiki/Logging?  If so, is
> there a specific issue that you are having with some
aspect of the
> logging system?

Have been looking at it, but I just give it another go.
But I have the most problems when I use the
cherrypy.tree.mount, if
something goes wrong here I just gets a 404 error and this
is me log:
2007-10-16 22:31:27,734 cherrypy.access.4398073563288 INFO
***.***.***.*** - - [16/Oct/2007:22:31:27] "GET
/train/user HTTP/1.1"
404 1360 "" ""


> > An other thing is, I using autoreload but I still
have to reload
> > apache before new things works. Is this because I
am using cherrypy in
> > apache?
>
> Hhhmmm, that's strange.  How are you hooking CherryPy
up to Apache?  I
> use mod_proxy for some small sites, and autoreload
works fine.  I
> think it totally bombs out if you use mod_python.

I am using mod_python, and I had a feeling that might be
it.
Is it best to use other than mod_python?




--~--~---------~--~----~------------~-------~--~----~
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 h
ttp://groups.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

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