最有效的方式(即,最少的重力)是把在维姆的Django环境档案用于使用Qalite?
仅凭空景:
# Django settings for mysite project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ( Your Name , [email protected] ),
)
MANAGERS = ADMINS
DATABASES = {
default : {
ENGINE : django.db.backends. , # Add postgresql_psycopg2 , mysql , sqlite3 or oracle .
NAME : , # Or path to database file if using sqlite3.
USER : , # Not used with sqlite3.
PASSWORD : , # Not used with sqlite3.
HOST : , # Set to empty string for localhost. Not used with sqlite3.
PORT : , # Set to empty string for default. Not used with sqlite3.
}
}
...
...and I want it to look like this:
# Django settings for mysite project.
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ( Your Name , [email protected] ),
)
MANAGERS = ADMINS
DATABASES = {
default : {
ENGINE : django.db.backends.sqlite3 , # Add postgresql_psycopg2 , mysql , sqlite3 or oracle .
NAME : local.db , # Or path to database file if using sqlite3.
USER : , # Not used with sqlite3.
PASSWORD : , # Not used with sqlite3.
HOST : , # Set to empty string for localhost. Not used with sqlite3.
PORT : , # Set to empty string for default. Not used with sqlite3.
}
}
...
I know this is a trivial question, but I m trying to get more efficient with Vim, so I m curious if others have quicker approaches to this repetitive task.