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
> wrote:
>
>
> So, I would perhaps try something like
> url("^token/", Token
Can we please have a look at the project and app urls.py and also the
view.py module.
On Fri, Mar 6, 2020 at 1:19 PM '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/"
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 a
Dear Ali
I am just new to this myself, but I think it comes to down to the question
what is the first pattern that matches for django. As far as I know we can
use the ^ in order to tell django/python that a pattern should be at the
start of a string that is searched. So I am not mistaken, you c
Hi all,
I have encountered a problem when trying to create views that have to
include the same string in name. I created two views below.
The problem is here, when I tried to make a post request to revoke_token
endpoint, this request always is handled by 'token/' endpoint(TokenView).
I debugged
5 matches
Mail list logo