On 22/03/11 12:44, Kristaps Kūlis wrote: > I personally would greatly appreciate update in docs to show "best > way" to handle per enviroment settings / sensitive settings, as now > there is many ways :) > Consider when one has his local development enviroment with locmem > cache and sqlite3 db, and staging server with MySQL / memcache and > production cluster with MySQL (different credentials) and memcache > cluster. In settings.py most deployment specific stuff is left blank > and on deployment {staging/production}_settings.py is created with > from settings import * and then overriding per env settings :). > Actually it took me far too much googling to find "how" and "what" to > do, at least I believe that such stuff should be put in docs to make > django more sysadmin friendly.
One problem is that there are simply so many options, there is no 'best' way. Every assumption made in this thread holds only for some situations. And the solutions are not at all Django specific - every web site, with any technology, has this issue i.e. where to put sensitive configuration information. Django's settings file gives you enough power to put this information anywhere you like, and our documentation already points out that you can use any Python to set the values of settings. We could make this a bit more explicit to point that this means you can store settings not only in other Python files, but anywhere. Luke -- "I am going to let you move around more, just to break up the mahogany." (True Quotes From Induhviduals, Scott Adams) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.