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 this: if platform.system() == "Windows": MEDIA_ROOT = 'something for windows' MEDIA_URL = 'xyz' # more stuff here... else: MEDIA_ROOT = 'something for linux' MEDIA_URL = 'abc' # more stuff here... Is there a better way? Does this cause a performance hit, or is settings.py and urls.py processed only once? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---