Skip to content

chore: relocate Django project and apps under src/#95

Merged
Ndevu12 merged 3 commits intomainfrom
chore/move-django-project-to-src
Mar 24, 2026
Merged

chore: relocate Django project and apps under src/#95
Ndevu12 merged 3 commits intomainfrom
chore/move-django-project-to-src

Conversation

@Ndevu12
Copy link
Copy Markdown
Owner

@Ndevu12 Ndevu12 commented Mar 24, 2026

Move the the_inventory project package, first-party apps (api, home, inventory, procurement, reports, sales, search, tenants), Wagtail/Django locale catalogs, project static assets and templates, manage.py, and the existing MEDIA_ROOT tree from the repository root into src/ for a conventional src layout and a cleaner split from frontend, tests, and tooling.

Configure setuptools to discover packages under src via tool.setuptools.packages.find.where.

Update CI, Docker, Procfile, and entrypoint.sh to prepend PYTHONPATH with the src tree and run manage.py, Django checks, and gunicorn from the correct working directory so imports and WSGI resolve reliably.

Adjust tests, pyproject.toml, requirements where needed, and contributor documentation to match the new paths and workflow.

Drop compiled gettext .mo files from version control while keeping .po sources under src/locale.

Resolve the in-progress removal of api/views/sales.py at the old root path so the tree matches the src-only API package.

@Ndevu12 Ndevu12 self-assigned this Mar 24, 2026
@Ndevu12 Ndevu12 added the enhancement New feature or request label Mar 24, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
the-inventory Ready Ready Preview, Comment Mar 24, 2026 6:18pm
the-inventory-ui Ready Ready Preview, Comment Mar 24, 2026 6:18pm

Move the the_inventory project package, first-party apps (api, home, inventory, procurement, reports, sales, search, tenants), Wagtail/Django locale catalogs, project static assets and templates, manage.py, and the existing MEDIA_ROOT tree from the repository root into src/ for a conventional src layout and a cleaner split from frontend, tests, and tooling.

Configure setuptools to discover packages under src via tool.setuptools.packages.find.where.

Update CI, Docker, Procfile, and entrypoint.sh to prepend PYTHONPATH with the src tree and run manage.py, Django checks, and gunicorn from the correct working directory so imports and WSGI resolve reliably.

Adjust tests, pyproject.toml, requirements where needed, and contributor documentation to match the new paths and workflow.

Drop compiled gettext .mo files from version control while keeping .po sources under src/locale.

Resolve the in-progress removal of api/views/sales.py at the old root path so the tree matches the src-only API package.
@Ndevu12 Ndevu12 force-pushed the chore/move-django-project-to-src branch from bd21fa8 to f368321 Compare March 24, 2026 18:06
…rough an exception

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Sync locale files and reports-locale-payload for new report UI keys.

Made-with: Cursor
@Ndevu12 Ndevu12 merged commit 9b93305 into main Mar 24, 2026
5 of 8 checks passed
@Ndevu12 Ndevu12 deleted the chore/move-django-project-to-src branch March 24, 2026 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants