Skip to content

Use standard location for manage.py #17

Description

@j-i-l

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions