Skip to content

chore: fix django warnings#687

Merged
zjx20 merged 1 commit intomainfrom
support/fix-django-warnings
Apr 10, 2025
Merged

chore: fix django warnings#687
zjx20 merged 1 commit intomainfrom
support/fix-django-warnings

Conversation

@zjx20
Copy link
Copy Markdown
Contributor

@zjx20 zjx20 commented Apr 9, 2025

image

When the backend starts, the above warning messages will appear in the log. This PR resolves them.

  • ?: (urls.W005) URL namespace 'admin' isn't unique. You may not be able to reverse all URLs in this namespace

    This is because the built-in Django admin backend conflicts with our admin API in the namespace. Considering that the built-in admin backend is not in use, the relevant routes are commented out to resolve this.

  • aperag.CollectionSyncHistory.task_context: (fields.E010) JSONField default should be a callable instead of an instance so that it's not shared between all field instances.

    This warning message is very clear; just fix it according to the instructions.

The PR also includes other minor changes.

Close #685.

@zjx20 zjx20 requested a review from iziang as a code owner April 9, 2025 08:36
@apecloud-bot apecloud-bot added the size/M Denotes a PR that changes 30-99 lines. label Apr 9, 2025
@zjx20 zjx20 merged commit 85e3da4 into main Apr 10, 2025
10 of 13 checks passed
@zjx20 zjx20 deleted the support/fix-django-warnings branch April 10, 2025 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/M Denotes a PR that changes 30-99 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] miss text2vec and torch

3 participants