Re: How to handle platform dependent settings?

2008-08-29 Thread Martin J. Laubach
> > If it's mostly paths that you need to change, check out: > > >http://rob.cogit8.org/blog/2008/Jun/20/django-and-relativity/ There's a much easier (IMO anyway) method that does not involve messing with settings.py. If you just want to find out the directory of the current application, you

Re: How to handle platform dependent settings?

2008-08-28 Thread Gremmie
On Aug 28, 12:15 am, David Zhou <[EMAIL PROTECTED]> wrote: > > If it's mostly paths that you need to change, check out: > > http://rob.cogit8.org/blog/2008/Jun/20/django-and-relativity/ > It is a lot more than dealing with relative paths. However this link takes the same approach as what I was

Re: How to handle platform dependent settings?

2008-08-27 Thread David Zhou
On Aug 27, 2008, at 8:12 PM, Gremmie wrote: > > I test my code locally on my PC using the XAMPP package, and deploy > the real site on Linux with Apache. My code is all common, except for > settings.py and urls.py. I'd rather not have 2 versions of these files > and try to manage that in my SVN

How to handle platform dependent settings?

2008-08-27 Thread Gremmie
I test my code locally on my PC using the XAMPP package, and deploy the real site on Linux with Apache. My code is all common, except for settings.py and urls.py. I'd rather not have 2 versions of these files and try to manage that in my SVN repository. I was thinking about doing something like