HI,
-a xxx.x...@.com --> username
After I entered
python.exe -m httpie -a xxx.x...@.com POST 127.0.0.1:8000/apii/login/
'Authorization: Token
db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890'
It prompted for the password, I entered, that is when I got the output
Regar
Hi,
Try providing a username and password. Check if it is working or not
On Thu, Apr 8, 2021 at 7:26 PM 'Amitesh Sahay' via Django users <
django-users@googlegroups.com> wrote:
> Hey Ranga,
>
> Below is the new output
>
> python.exe -m httpie -a xxx.x...@.com POST 127.0.0.1:8000/apii/login/
Hey Ranga,
Below is the new output
python.exe -m httpie -a xxx.x...@.com POST 127.0.0.1:8000/apii/login/
'Authorization: Token
db058f23ecc70f4fa3de4ac69a04dc48bb7579a63aea1ad3d038ce59b1511890'
http: password for xxx.x...@.com@127.0.0.1:8000: "this asked for the
password, so I entered and
Refer the docs
https://httpie.io/
On Thu, Apr 8, 2021 at 6:44 PM RANGA BHARATH JINKA
wrote:
> Hi, You have to specify the POST method in the command
>
> http -a USERNAME POST
> https://api.github.com/repos/httpie/httpie/issues/83/comments body='HTTPie is
> awesome! :heart:'
>
> All the best
>
Hi, You have to specify the POST method in the command
http -a USERNAME POST
https://api.github.com/repos/httpie/httpie/issues/83/comments
body='HTTPie is awesome! :heart:'
All the best
On Thu, Apr 8, 2021 at 6:18 PM 'Amitesh Sahay' via Django users <
django-users@googlegroups.com> wrote:
> HI
HI,
I have created a simple login API through django rest framework. Below is the
code snippet:
from django.contrib.auth import login
from rest_framework.generics import ListCreateAPIView
from rest_framework import status
from rest_framework.response import Response
from rest_framework.authtoken.s
6 matches
Mail list logo