Skip to content

.format URLs listed in docs #50

Closed
Closed
@guitarmanvt

Description

@guitarmanvt

With the current DRF tutorial, I found that drfdocs displays these URL endpoints:

/snippets.<format>/
/snippets/<pk>.<format>/
/snippets/<pk>/highlight.<format>/

And others.

This is likely because the urls.py in the snippets app includes this:

from rest_framework.urlpatterns import format_suffix_patterns
...
urlpatterns = format_suffix_patterns(urlpatterns)

IMHO, drfdocs needs to ignore the additional URL patterns generated by format_suffix_patterns.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions