Commit Graph

20 Commits (e7c0b95074f5248dd7f0d7f8f6e8df649945766e)

Author SHA1 Message Date
Joel Crocker 3f7934cc04 Updates django_manage so it populates VIRTUAL_ENV
Virtualenv's activate script sets the VIRTUAL_ENV environment variable to the path of the virtualenv. Checking this variable is a reasonably common way to verify that execution is happening in a virtualenv. It would be convenient if this module's virtualenv handling set this environment variable.
10 years ago
Michael Warkentin c8eb47eefa Update `command` description
The docs were a little bit out of date with what commands are available to be run. They also didn't explain that you could pass custom commands - I almost went down the path of trying to run our custom management commands with the generic Ansible `command` module.
10 years ago
James Tanner 66747529a6 Fix version_added for a few parameters in django_manage 10 years ago
Richard C Isaacson c1af272ba1 Bulk update of choices=BOOLEANS to type='bool' 10 years ago
James Tanner ba0fec4f42 Force command action to not be executed by the shell unless specifically enabled 10 years ago
Roger López a3dcac0a0f django_manage need not require virtualenv in PATH
The virtualenv parameter to the django_manage command is used to locate
the virtualenv and build it if necessary.  Access to the virtualenv
executable is only needed if the virtualenv directory doesn't exist and
needs to be built.  This patch allows for the situation where a
virtualenv that is not in the PATH was used to create a virtualenv prior
to running the django_manage module.
11 years ago
James Tanner ad837709bd Addresses #5023 Fix import comments 11 years ago
James Tanner 6000d636b3 Fixes #5023 Convert all modules to use new snippet import pattern 11 years ago
Steven Davidson f5d9679abc Reports changed status from django_manage migrate 11 years ago
Patrick Michaud c1e241577c Allow generic django_management commands
This commit removes the restriction on django management commands.  If a command is unknown to the django installation, there will be a concise error produced.

for example:

  tasks:
    - name: invalid command
      django_manage: virtualenv="/valid/virtualenv" app_path="/valid/app_path" command="nowaydude"

Results in:

failed: [hostname] => {"cmd": "python manage.py nowaydude", "failed": true}
msg: stdout: Unknown command: 'nowaydude'
Type 'manage.py help' for usage.

:stderr: Unknown django command: nowaydude
11 years ago
Javier Candeira f8255b538e fix django_manage migrate command 11 years ago
Jake Kreider bd446ef777 Include database param if provided and valid in django_admin commands 11 years ago
danxshap 4db4607ee5 use home path expansion for virtualenv param in django_manage module 11 years ago
Michael DeHaan 39834d854c Styling: trailing spaces 11 years ago
Lorin Hochstein 1ef1b03bf6 django_manage: Pass --noinput to migrate
The django 'migrate' command should receive the --noinput command,
otherwise it can block waiting for user input.
11 years ago
Jochen Maes 7b763dc487 adds 2 django commands (migrate, collectstatic)
Signed-off-by: Jochen Maes <jochen@sejo-it.be>
11 years ago
Michael DeHaan 78fdedd490 Merge remote branch 'origin' into devel
Conflicts:
	library/web_infrastructure/django_manage
11 years ago
Jan-Piet Mens 5c69918d53 DOCS: standardize on EXAMPLES (a.k.a. Docs-JumboPatch JetLag Edition)
Migrated all examples: in DOCUMENTATION=''' string to standalone EXAMPLES=''' string
  Added deprecation warning to moduledev.rst and remove deprecated example from it
  Fixed up a few typos and uppercased some acronyms.
  add consistency to how EXAMPLES are formatted
11 years ago
Lorin Hochstein d2ea9d85d0 Fix broken link in django_manage doc 11 years ago
Michael DeHaan 391fb98ee2 Allow modules to be categorized, and also sort them when generating the documentation. 11 years ago