unrecognized arguments: --ptvsd
Heavyknights opened this issue · 1 comments
Heavyknights commented
Followed steps in "usage" and got this error:
usage: django-admin runserver [-h] [--ipv6] [--nothreading] [--noreload]
[--version] [-v {0,1,2,3}] [--settings SETTINGS]
[--pythonpath PYTHONPATH] [--traceback]
[--no-color] [--force-color]
[addrport]
django-admin runserver: error: unrecognized arguments: --ptvsd
felix-last commented
Had the same issue and found that placing 'django_ptvsd'
as the first entry in INSTALLED_APPS
resolved it. Found the hint here: https://stackoverflow.com/a/37755287/1234438
Edit: Just realized that the readme explicitly states the following: "Add django_ptvsd to your INSTALLED_APPS above Django". Although django is not actually part of INSTALLED_APPS
at all...?