fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] Trouble using upload_template


From: Stuart Axon
Subject: [Fab-user] Trouble using upload_template
Date: Tue, 15 May 2012 03:23:26 -0700 (PDT)

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.
    },
}


reply via email to

[Prev in Thread] Current Thread [Next in Thread]