django_manage - added splitting the command parameter for running (#3283)

* added splitting the command parameter for running

* added changelog fragment

* refactored variable names for improved readability
This commit is contained in:
Alexei Znamensky 2021-08-31 17:14:08 +12:00 committed by GitHub
commit b2bb7e3f9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 18 deletions

View file

@ -121,3 +121,4 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.1/howto/static-files/
STATIC_URL = '/static/'
STATIC_ROOT = '/tmp/django-static'

View file

@ -48,3 +48,9 @@
pythonpath: "{{ tmp_django_root.path }}/1045-single-app-project/"
command: check
virtualenv: "{{ tmp_django_root.path }}/venv"
- name: Run collectstatic --noinput on simple project
community.general.django_manage:
project_path: "{{ tmp_django_root.path }}/simple_project/p1"
command: collectstatic --noinput
virtualenv: "{{ tmp_django_root.path }}/venv"