installWebApp role: make Django project subdirectory configurable
- Add
django_project_subdir: "." to roles/installWebApp/defaults/main.yml — standard layout (repo root) as default
- Replace all occurrences of
{{ app_name | lower }} that refer to the project subdirectory in roles/installWebApp/tasks/main.yml with {{ django_project_subdir }} (affects: .env destination, manage.py collectstatic, manage.py migrate)
- Check
roles/updateWebApp/tasks/main.yml for the same occurrences and apply the same replacement
- Add a migration note to the role's
README.md:
- Existing projects where
manage.py lives in a {{ app_name | lower }}/ subdirectory must explicitly set django_project_subdir: "{{ app_name | lower }}" in their group_vars/all/main.yml (or equivalent) to preserve current behaviour
- New projects following the standard Django layout require no configuration — the default
"." works out of the box
installWebApprole: make Django project subdirectory configurabledjango_project_subdir: "."toroles/installWebApp/defaults/main.yml— standard layout (repo root) as default{{ app_name | lower }}that refer to the project subdirectory inroles/installWebApp/tasks/main.ymlwith{{ django_project_subdir }}(affects:.envdestination,manage.py collectstatic,manage.py migrate)roles/updateWebApp/tasks/main.ymlfor the same occurrences and apply the same replacementREADME.md:manage.pylives in a{{ app_name | lower }}/subdirectory must explicitly setdjango_project_subdir: "{{ app_name | lower }}"in their group_vars/all/main.yml(or equivalent) to preserve current behaviour"."works out of the box