Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Servers widget appears with empty select box when "ninja" app added to INSTALLED_APPS #1393

Open
angstwad opened this issue Jan 17, 2025 · 0 comments

Comments

@angstwad
Copy link

angstwad commented Jan 17, 2025

I'm adding 'ninja' to INSTALLED_APPS in settings in order to use Django-hosted static files rather than rely on the CDN. When doing so, I find an unpopulated select form element pop up for Swagger server configuration, like below:

Image

Presumably the <div class="opblock-section operation-servers"> is being accidentally rendered in templates when it's static vs loaded from the CDN - just a wildly unfounded/uneducated guess as to what might be happening. Will see if I can dedicate some time to fixing this but opening up a big for the broader audience in case this is tracked in another issue (I was unable to find anything) or someone has an easy fix.

Versions
Python 3.12.7
Django==5.1.4
django-ninja==1.3.0
pydantic==2.10.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant