Hi folks,

Outstanding work with 3.6! I'm trying to get the interactive docs working
and was hoping someone could point me in the right direction.

When I navigate to "/api/docs" I see the expected UI, however none of the
generated headers at the top of the lefthand panel work. There's a link for
each app in my project, but clicking on them does nothing. The headers at
the bottom of the panel ("authentication" and "source code") do appear to
be functioning. I've tried in both Firefox and Chrome with no luck.

No request or console log is triggered when I click any of the app headers.
The only error I get is during load time: a 404 for
http://localhost:8000/static/rest_framework/js/coreapi-0.0.20.js (
http://localhost:8000/static/rest_framework/js/coreapi-0.1.0.js loads
successfully). I'm not sure whether 0.0.20 is needed.

I am using nested URLs, which I suspect might be the issue. My root URL
conf looks like this:

    url(r'^api/$', APIRootView.as_view()),
    url(r'^api/circuits/', include('circuits.api.urls',
namespace='circuits-api')),
    url(r'^api/dcim/', include('dcim.api.urls', namespace='dcim-api')),
    url(r'^api/extras/', include('extras.api.urls',
namespace='extras-api')),
    url(r'^api/ipam/', include('ipam.api.urls', namespace='ipam-api')),
    url(r'^api/secrets/', include('secrets.api.urls',
namespace='secrets-api')),
    url(r'^api/tenancy/', include('tenancy.api.urls',
namespace='tenancy-api')),

APIRootView is a custom view. Within each app, I have something like:

    router = routers.DefaultRouter()
    router.register(r'providers', views.ProviderViewSet)
    router.register(r'circuit-types', views.CircuitTypeViewSet)
    router.register(r'circuits', views.CircuitViewSet)
    router.register(r'circuit-terminations',
views.CircuitTerminationViewSet)
    urlpatterns = router.urls

I see a navigation header for each of the six apps, but again, they seem
empty. I'm running DRF 3.6.2 and coreapi 2.3.0. Any pointers are much
appreciated.

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to