Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

NameError: name 'API_PREFIX' is not defined // Incomplete Quickstart #141

@Miserlou

Description

@Miserlou

The "quickstart" example in the docs is incomplete. Running it as described with a fresh DRF and fresh drf_openapi will give:

NameError: name 'API_PREFIX' is not defined

Fixing that then gives:

NameError: name 'include' is not defined

The Quickstart example should be updated to include everything necessary to actually run drf_openapi (ex, API_PREFIX='blah', from django.conf.urls import url, include)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions