Sweet, I knew it was simple :) Thanks!
On Oct 23, 3:54 pm, felix <[EMAIL PROTECTED]> wrote: > at the very bottom of settings.py : > > from local_settings import * > > this overwrites just the imported keys/values > > -flx > > On Thu, Oct 23, 2008 at 11:55 PM, Dana <[EMAIL PROTECTED]> wrote: > > > Hello everyone, > > > I know a form of this question has been asked before on this group but > > I can't for the life of me find the thread. > > > I am wondering how I can have a generic settings.py file that contains > > all my basic settings and then have a settings-local.py (or > > whatever...) and have that contain custom settings such as DEBUG=True, > > etc... Ideally the settings-local.py file would *only* have the custom > > settings, and nothing else, but I cannot seem to get this to work. For > > example: > > > In settings.py I would have default settings: > > > settings.py > > ------------------------------------------- > > DEBUG = False > > > DATABASE_ENGINE = 'mysql' > > > DATABASE_NAME = 'something' > > > DATABASE_USER = 'root' > > DATABASE_PASSWORD = '' > > > MEDIA_ROOT = '/home/user/media/' > > MEDIA_URL = 'http://media.example.com/' > > > ADMIN_MEDIA_PREFIX = '/admin_media/' > > > INSTALLED_APPS = ( > > .... > > ) > > > ...... etc > > > ------------------------------------------- > > and in settings-local.py I would override the settings: > > > # settings-local.py > > ------------------------------------------- > > DEBUG = True > > > DATABASE_USER = 'username' > > DATABASE_PASSWORD = 'somethinghere123' > > ------------------------------------------- > > > I would like some way to have settings-local import my settings.py > > file and then override specific settings. Anyone know how to do this > > cleanly? > > > Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---