Closed radix closed 4 years ago
I am using version 1.16.1 and noticed some things:
rest_framework_jwt
to INSTALLED_APPS
(should have been done according to #44)rest_framework_jwt.blacklist
to INSTALLED_APPS
breaks the app, as reported in #34 rest_framework_jwt.blacklist
is in INSTALLED_APPS
, as it should according to #35. Having only rest_framework_jwt
in INSTALLED_APPS
, django runs flawlessly but when running the tests my DB errors with
STATEMENT: ALTER TABLE "rest_framework_jwt_blacklistedtoken" ADD CONSTRAINT "rest_framework_jwt_b_user_id_5bd5b84a_fk_accounts_" FOREIGN KEY ("user_id") REFERENCES "accounts_myuser" ("id") DEFERRABLE INITIALLY DEFERRED
And consequently, django tests crash with relation "accounts_myuser" does not exist
.
Same issue here.
I just switched from djangorestframework-jwt to this package, and one of the things I ran into was this error:
I had to add
rest_framework_jwt
toINSTALLED_APPS
in order for my code to work. This isn't mentioned anywhere in the documentation.