chore: relocate Django project and apps under src/#95
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
bd21fa8 to
f368321
Compare
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.