I do it like this:

# settings.py
[ ... ]
try:
    from settings_dev import *
except ImportError:
    pass


# settings_dev.py
import os

DEBUG = True
DATABASE_ENGINE = 'sqlite3'
DATABASE_NAME = 'dev.db'
MEDIA_ROOT = os.path.abspath('../') + '/public/media/'
MEDIA_URL = 'http://127.0.0.1:8000/media/'
TEMPLATE_DIRS = (os.path.abspath('') + '/templates')
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to