You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, i installed drf_spectacular in my project that uses django-hosts for handling multiple subdomains. spectacular doesn't detect any view because my ROOT_URLCONF is empty.
Hi, I was unaware of this library. Seems like it completely bypasses the regular urlconf and instead injects its own routes via middleware. Spectacular&DRF both know nothing about this "hack".
I guess you have to make spectacular aware of thos injected routes by customizing the generator:
Hello, i installed drf_spectacular in my project that uses django-hosts for handling multiple subdomains. spectacular doesn't detect any view because my ROOT_URLCONF is empty.
here is my django_hosts configuration
my root urls is empty because my routes are located in "api" app
here is the output of ./manage.py spectacular
> python manage.py spectacular openapi: 3.0.3 info: title: Your Project API version: 1.0.0 description: Your project description paths: {} components: {}
Am i missing a configuration to tell spectacular how to fetch other hosts urls ?
The text was updated successfully, but these errors were encountered: