List Info

Thread: environment': 'production' vs. 'development'




environment': 'production' vs. 'development'
country flaguser name
United States
2007-09-06 04:09:39
Hi:

What are the differencies between these two modes:
'production' and
'development'?
I couldn't find the answer in the documentation.

Thanks in advance!


--~--~---------~--~----~------------~-------~--~----~
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: environment': 'production' vs. 'development'
user name
2007-09-06 04:58:58

"alex.schenkman" <alex.schenkmangmail.com> writes:

> Hi:
>
> What are the differencies between these two modes:
'production' and
> 'development'?
> I couldn't find the answer in the documentation.
>
> Thanks in advance!

I couldn't find the answer in the documentation either, and
I knew
that I had read it before.  Off the top of my head the
differences are
that in development mode cherrypy will autoreload changes to
python
files and will display a traceback in the browser on error.

Jason

--~--~---------~--~----~------------~-------~--~----~
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: environment': 'production' vs. 'development'
country flaguser name
United States
2007-09-06 10:55:41

alex.schenkman wrote:
&gt; What are the differencies between these two modes:
&gt; 'production' and 'development'? I couldn't find the
> answer in the documentation.

The CherryPy 3 answer:

>>> import cherrypy
>>&gt; cherrypy._cpconfig.environments['production']
{'checker.on': False,
&nbsp;'engine.autoreload_on': False,
&nbsp;'tools.log_headers.on': False,
&nbsp;'request.show_tracebacks': False,
&nbsp;'log.screen': False}

The 'development' environment is the default in CherryPy 3,
so if you want to know how it behaves, just poke around:

>>> cherrypy.checker.on
True
>;>> cherrypy.log.screen
True

I *believe* that none of the tools are on by default.


Robert Brewer
fumanchuaminus.org


--~--~---------~--~----~------------~-------~--~----~
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.google.com/group/cherrypy-users?hl=en
-~----------~----~----~----~------~----~------~--~---
Re: environment': 'production' vs. 'development'
country flaguser name
United States
2007-09-06 12:06:28
alex.schenkman wrote:
> Hi:
>
> What are the differencies between these two modes:
'production' and
> 'development'?
> I couldn't find the answer in the documentation.
>   

Isn't the answer documented in the section on configuration
files?  The
only net effect is to change the default settings of some of
the
configuration values.

The nice thing about something like CherryPy is that you
have the
source, so you can go look it up.  Grep for
"development".

-- 
Tim Roberts, timrprobo.com
Providenza & Boekelheide, Inc.


--~--~---------~--~----~------------~-------~--~----~
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: environment': 'production' vs. 'development'
user name
2007-09-06 12:15:19
as Tim says it changes the default config settings.

see http://cherrypy.org/browser/trunk/cherrypy/_cpconfig
.py#L101
for what the different modes does.

On 9/6/07, alex.schenkman <alex.schenkmangmail.com> wrote:
>
> Hi:
>
> What are the differencies between these two modes:
'production' and
> 'development'?
> I couldn't find the answer in the documentation.
>
> Thanks in advance!
>
>
> >
>


-- 
cheers
    elvelind grandin

--~--~---------~--~----~------------~-------~--~----~
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-5]

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