Hello All,
I'm having trouble getting upload_template working - pretty sure my template is incorrect, but finding example templates seems difficult.
env.project_name='test'
env.django_db_engine='postgresql_psycopg2'
upload_template('conf/settings_local.py', '%s/project/settings_local.py' % env.project_dir, context=env
The file uploads but no subsititution occurs. The template file looks like this:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.${django_db_engine})', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME':
'${project_name}', # Or path to database file if using sqlite3.
'USER': 'dbuser', # Not used with sqlite3.
'PASSWORD': 'dbuser123', # Not used with sqlite3.
'HOST': 'localhost',
# Set to empty string for localhost. Not used with sqlite3.
'PORT':
'', # Set to empty string for default. Not used with sqlite3.
},
}