0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Djangoで定義済みのAPIリストを出力する

Posted at

1. django-extensions をインストール

pip install django-extensions

2. django-extensions をセットアップ

# settings.py
INSTALLED_APPS = [
    ...
    "django_extensions",
]

3. 定義済みのAPIリストを出力

python manage.py show_urls

実行結果

  • 以下のように出力される
/api/v1/xxx/foo  api.views.xxx.foo.FooView
/api/v1/xxx/bar  api.views.xxx.bar.BarView
/api/v1/yyy/foo  api.views.yyy.foo.FooView
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?