Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

django-rest-framework: Unknown command: 'generateschema'

Executed the command according to the documentation:

python.exe manage.py generateschema > schema.yml

But instead of YAML got an error:

Unknown command: 'generateschema'

Type 'manage.py help' for usage.

Package versions:

  • Django 2.1
  • PyYAML 3.13
  • coreapi 2.3.3
  • djangorestframework 3.8.2
like image 469
Symon Avatar asked Sep 10 '25 17:09

Symon


1 Answers

Add 'rest_framework' to your INSTALLED_APPS setting.

INSTALLED_APPS = (
    ...
    'rest_framework',
)
like image 181
Druska Avatar answered Sep 13 '25 11:09

Druska



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!