|
|
@ -71,7 +71,7 @@ options:
|
|
|
|
- A space-delimited list of fixture file names to load in the database. B(Required) by the 'loaddata' command.
|
|
|
|
- A space-delimited list of fixture file names to load in the database. B(Required) by the 'loaddata' command.
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
notes:
|
|
|
|
notes:
|
|
|
|
- U(http://www.virtualenv.org/, virtualenv) must be installed on the remote host if the virtualenv parameter is specified.
|
|
|
|
- I(virtualenv) (U(http://www.virtualenv.org)) must be installed on the remote host if the virtualenv parameter is specified.
|
|
|
|
- This module will create a virtualenv if the virtualenv parameter is specified and a virtualenv does not already exist at the given location.
|
|
|
|
- This module will create a virtualenv if the virtualenv parameter is specified and a virtualenv does not already exist at the given location.
|
|
|
|
- This module assumes English error messages for the 'createcachetable' command to detect table existence, unfortunately.
|
|
|
|
- This module assumes English error messages for the 'createcachetable' command to detect table existence, unfortunately.
|
|
|
|
requirements: [ "virtualenv", "django" ]
|
|
|
|
requirements: [ "virtualenv", "django" ]
|
|
|
@ -79,20 +79,19 @@ author: Scott Anderson
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
EXAMPLES = """
|
|
|
|
EXAMPLES = """
|
|
|
|
# Run cleanup on the application installed in '$django_dir'.
|
|
|
|
# Run cleanup on the application installed in 'django_dir'.
|
|
|
|
- django_manage: command=cleanup app_path=$django_dir
|
|
|
|
- django_manage: command=cleanup app_path={{ django_dir }}
|
|
|
|
|
|
|
|
|
|
|
|
# Load the $initial_data fixture into the application
|
|
|
|
# Load the initial_data fixture into the application
|
|
|
|
- django_manage: command=loaddata app_path=$django_dir fixtures=$initial_data
|
|
|
|
- django_manage: command=loaddata app_path={{ django_dir }} fixtures={{ initial_data }}
|
|
|
|
|
|
|
|
|
|
|
|
#Run syncdb on the application
|
|
|
|
#Run syncdb on the application
|
|
|
|
- django_manage: >
|
|
|
|
- django_manage: >
|
|
|
|
command=syncdb
|
|
|
|
command=syncdb
|
|
|
|
app_path=$django_dir
|
|
|
|
app_path={{ django_dir }}
|
|
|
|
settings=$settings_app_name
|
|
|
|
settings={{ settings_app_name }}
|
|
|
|
pythonpath=$settings_dir
|
|
|
|
pythonpath={{ settings_dir }}
|
|
|
|
virtualenv=$virtualenv_dir
|
|
|
|
virtualenv={{ virtualenv_dir }}
|
|
|
|
database=$mydb
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#Run the SmokeTest test case from the main app. Useful for testing deploys.
|
|
|
|
#Run the SmokeTest test case from the main app. Useful for testing deploys.
|
|
|
|
- django_manage: command=test app_path=django_dir apps=main.SmokeTest
|
|
|
|
- django_manage: command=test app_path=django_dir apps=main.SmokeTest
|
|
|
|