durusmail: qp: Re: How to know a Publisher's context
How to know a Publisher's context
2006-04-25
2006-04-25
2006-04-25
Re: How to know a Publisher's context
2006-04-25
Re: How to know a Publisher's context
Michael Watkins
2006-04-25
* mario ruggier wrote [2006-04-25 15:32:15 +0200]:

> How do you manage deployment issues between dev and live?

What I do is have a config.py file containing a dict called configuration - I
import this into SitePublisher:


    class SitePublisher (DurusPublisher):

        from qp.sites.rd.config import configuration

    ...

And I don't check in the config.py to svn but maintain the file manually on my
dev/test and live instances. I've got a 'live_site' key in the mapping which
might cause code to evaluate differently if True.

It seemed like a simple and workable idea.
reply