klipstein/dojango — Issue #1: 1 - Custom profiles in main settings.py 
Author: klipstein
Created: 2011-11-06 12:45:42+00:00
State: closed

I managed defined a custom profile as follow:

DOJANGO_DOJO_VERSION = '1.1.1'

DOJANGO_BASE_MEDIA_ROOT =
os.path.abspath(os.path.dirname(__file__)+'/dojango/media/')

DOJANGO_DOJO_BUILD_PROFILES = {
'myapp': {'base_root': DOJANGO_BASE_MEDIA_ROOT +'/release',
'used_src_version': DOJANGO_DOJO_VERSION,
'build_version': DOJANGO_DOJO_VERSION,
'profile_file': DOJANGO_BASE_MEDIA_ROOT+'/myapp.profile.js',
'options': 'profile=myapp action=release optimize=""
cssOptimize=comments.keepLines'},
}

What I did not like about this is the explicit setting of
DOJANGO_BASE_MEDIA_ROOT. Does there exist a way we can use the dojango
default value when defining additional profiles in main settings.py

Original link: http://code.google.com/p/dojango/issues/detail?id=1