SchemaGenerator is not using the SCRIPT_NAME in the url · Issue #4305 · encode/django-rest-framework (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@bobkarreman

Description

@bobkarreman

Checklist

Steps to reproduce

Deploy your django project on a subpath with a proxy and make sure to set the SCRIPT_NAME header.

Expected behavior

Urls in the schema to be using the URLs with the SCRIPT_NAME prepended.

Actual behavior

URLs without the SCRIPT_NAME making the Django REST Swagger UI unusable, since its calling to the wrong URLs.

Also see this ticket at the Django REST Swagger repo: marcgibbons/django-rest-swagger#494 (comment)