Thanks, it works well. We have to add start(^) and finish($) regex symbols to 
url names. Otherwise django resolver checks whether any url has contain request 
path.



> On 6 Mar 2020, at 21:19, 'MH' via Django users 
> <django-users@googlegroups.com> wrote:
> 
> 
> So, I would perhaps try something like
> url("^token/", TokenView.as_view(), name="token"),
> url("^revoke_token/", RevokeTokenView.as_view(), name="revoke-token"),
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/b0c74ae4-8098-4cb4-99cc-3237955b41b8%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/8BAF6CD1-C31D-4873-9F61-8D6FA18963E6%40gmail.com.

Reply via email to