Thanks for the input Joseph.  I can see how that would work for me too.

    -Jim

On 1/10/2012 7:46 PM, Joseph Jude wrote:
I use the below:
is_local = request.client in ['127.0.0.1', 'localhost']
if is_local:
        from local_settings import *
else:
        from prod_settings import *

I got local_settings.py & prod_settings.py. Through hgignore, I ignore prod_settings.py so it doesn't go to my public repo.

P.S: since I run the site on webfaction where request.is_local returns true so I had to use the first line shortcut.

Joseph
http://www.jjude.biz

No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 2012.0.1901 / Virus Database: 2109/4734 - Release Date: 01/10/12


--
Jim Steil
VP of Information Technology
Quality Liquid Feeds, Inc.
608.935.2345 office
608.341.9896 cell

Reply via email to