how to know table to refrence when creating json web token in djangoDjango (using TokenAuthentication): “non_field_errors”: "Unable to log in with provided credentials?Creating a JSON response using Django and PythonLogin using Tastypie. Curl exampleHow to login users with email and log them out with Django Rest Framework JSON web tokens?JSON Web Token for Django REST won't authenticate to user databaseField name `username` is not valid for modelDjango-rest-framework-jwt won't return JWToken for nonstaff accounts (django admin error?)getting Oauth 2 Invalid Client error while checking the application created in django projectDjango REST framework JWT 403 forbiddenDjango Authentication Tokken, can't open the admin pageReact Proxy error: Could not proxy request /api/ from localhost:3000 to http://localhost:8000 (ECONNREFUSED)

Why are we moving in circles with a tandem kayak?

Would people understand me speaking German all over Europe?

Applications of pure mathematics in operations research

Coworker mumbles to herself when working, how to ask her to stop?

What force enables us to walk? Friction or normal reaction?

How can I convert a linear narrative into a branching narrative?

Why did Windows 95 crash the whole system but newer Windows only crashed programs?

What is my clock telling me to do?

Why does calling cout.operator<<(const char*) print the address instead of the character string?

Can machine learning learn a function like finding maximum from a list?

Does Ubuntu reduce battery life?

How to choose using Collection<Id> rather than Collection<String>, or the opposite?

How do I make my photos have more impact?

"Valet parking " or "parking valet"

Can you continue the movement of a Bonus Action Dash granted by Expeditious Retreat if your Concentration is broken mid-move?

What is this kind of symbol meant to be?

Boots or trail runners with reference to blisters?

Exploiting the delay when a festival ticket is scanned

How did astronauts using rovers tell direction without compasses on the Moon?

How to innovate in OR

Should I put my name first, or last in the team members list

Are all French verb conjugation tenses and moods practical and efficient?

How can Paypal know my card is being used in another account?

Solve equation using Mathematica



how to know table to refrence when creating json web token in django


Django (using TokenAuthentication): “non_field_errors”: "Unable to log in with provided credentials?Creating a JSON response using Django and PythonLogin using Tastypie. Curl exampleHow to login users with email and log them out with Django Rest Framework JSON web tokens?JSON Web Token for Django REST won't authenticate to user databaseField name `username` is not valid for modelDjango-rest-framework-jwt won't return JWToken for nonstaff accounts (django admin error?)getting Oauth 2 Invalid Client error while checking the application created in django projectDjango REST framework JWT 403 forbiddenDjango Authentication Tokken, can't open the admin pageReact Proxy error: Could not proxy request /api/ from localhost:3000 to http://localhost:8000 (ECONNREFUSED)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Am trying to implement json wen token in Django. I have been following tutorial from this source.link I have installed and configured all the necessary requirements.



To obtain users token here is the curl example



$ curl --request POST 
--url http://localhost:8000/jwt-auth/
--header 'content-type: application/json'
--data '"username": "myusername", "password": "mypass"'

"token": "YOUR_JWT_TOKEN"


Here is my code for making call



import requests

item = "username": "admin", "password": "admin"
resp1 = requests.post("http://localhost:8000/auth-jwt/",
data=json.dumps(item),
headers=
"Content-Type":"application/json",
"Accept": "application/json"

)
print (resp1.status_code)
#print (resp1.content)
content = json.loads(resp1.content)
print(content)
#print(content['status'])


My issues:



When I run the above code, it returns error



non field error: unable to login with provided credentials



What does this mean. which table do I have to create to use their credentials. Currently I have users nancy on auth_user table.



Consequently, This similar issues has been resolved here but I cannot get it to work Stackoverflow link



Can someone tell me what that error above is all about and next step in solving the problem. Thanks










share|improve this question






























    0















    Am trying to implement json wen token in Django. I have been following tutorial from this source.link I have installed and configured all the necessary requirements.



    To obtain users token here is the curl example



    $ curl --request POST 
    --url http://localhost:8000/jwt-auth/
    --header 'content-type: application/json'
    --data '"username": "myusername", "password": "mypass"'

    "token": "YOUR_JWT_TOKEN"


    Here is my code for making call



    import requests

    item = "username": "admin", "password": "admin"
    resp1 = requests.post("http://localhost:8000/auth-jwt/",
    data=json.dumps(item),
    headers=
    "Content-Type":"application/json",
    "Accept": "application/json"

    )
    print (resp1.status_code)
    #print (resp1.content)
    content = json.loads(resp1.content)
    print(content)
    #print(content['status'])


    My issues:



    When I run the above code, it returns error



    non field error: unable to login with provided credentials



    What does this mean. which table do I have to create to use their credentials. Currently I have users nancy on auth_user table.



    Consequently, This similar issues has been resolved here but I cannot get it to work Stackoverflow link



    Can someone tell me what that error above is all about and next step in solving the problem. Thanks










    share|improve this question


























      0












      0








      0








      Am trying to implement json wen token in Django. I have been following tutorial from this source.link I have installed and configured all the necessary requirements.



      To obtain users token here is the curl example



      $ curl --request POST 
      --url http://localhost:8000/jwt-auth/
      --header 'content-type: application/json'
      --data '"username": "myusername", "password": "mypass"'

      "token": "YOUR_JWT_TOKEN"


      Here is my code for making call



      import requests

      item = "username": "admin", "password": "admin"
      resp1 = requests.post("http://localhost:8000/auth-jwt/",
      data=json.dumps(item),
      headers=
      "Content-Type":"application/json",
      "Accept": "application/json"

      )
      print (resp1.status_code)
      #print (resp1.content)
      content = json.loads(resp1.content)
      print(content)
      #print(content['status'])


      My issues:



      When I run the above code, it returns error



      non field error: unable to login with provided credentials



      What does this mean. which table do I have to create to use their credentials. Currently I have users nancy on auth_user table.



      Consequently, This similar issues has been resolved here but I cannot get it to work Stackoverflow link



      Can someone tell me what that error above is all about and next step in solving the problem. Thanks










      share|improve this question














      Am trying to implement json wen token in Django. I have been following tutorial from this source.link I have installed and configured all the necessary requirements.



      To obtain users token here is the curl example



      $ curl --request POST 
      --url http://localhost:8000/jwt-auth/
      --header 'content-type: application/json'
      --data '"username": "myusername", "password": "mypass"'

      "token": "YOUR_JWT_TOKEN"


      Here is my code for making call



      import requests

      item = "username": "admin", "password": "admin"
      resp1 = requests.post("http://localhost:8000/auth-jwt/",
      data=json.dumps(item),
      headers=
      "Content-Type":"application/json",
      "Accept": "application/json"

      )
      print (resp1.status_code)
      #print (resp1.content)
      content = json.loads(resp1.content)
      print(content)
      #print(content['status'])


      My issues:



      When I run the above code, it returns error



      non field error: unable to login with provided credentials



      What does this mean. which table do I have to create to use their credentials. Currently I have users nancy on auth_user table.



      Consequently, This similar issues has been resolved here but I cannot get it to work Stackoverflow link



      Can someone tell me what that error above is all about and next step in solving the problem. Thanks







      django






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 26 at 21:10









      Nancy MooreeNancy Mooree

      9021 gold badge3 silver badges10 bronze badges




      9021 gold badge3 silver badges10 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0














          I found out my problem. I need to create a superuser account as per



          $ python manage.py createsuperuser


          so running this syntax squentially at command prompts solves my problem.



           python manage.py makemigrations
          python manage.py migrate
          python manage.py createsuperuser
          python manage.py runserver





          share|improve this answer
























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55366238%2fhow-to-know-table-to-refrence-when-creating-json-web-token-in-django%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I found out my problem. I need to create a superuser account as per



            $ python manage.py createsuperuser


            so running this syntax squentially at command prompts solves my problem.



             python manage.py makemigrations
            python manage.py migrate
            python manage.py createsuperuser
            python manage.py runserver





            share|improve this answer





























              0














              I found out my problem. I need to create a superuser account as per



              $ python manage.py createsuperuser


              so running this syntax squentially at command prompts solves my problem.



               python manage.py makemigrations
              python manage.py migrate
              python manage.py createsuperuser
              python manage.py runserver





              share|improve this answer



























                0












                0








                0







                I found out my problem. I need to create a superuser account as per



                $ python manage.py createsuperuser


                so running this syntax squentially at command prompts solves my problem.



                 python manage.py makemigrations
                python manage.py migrate
                python manage.py createsuperuser
                python manage.py runserver





                share|improve this answer













                I found out my problem. I need to create a superuser account as per



                $ python manage.py createsuperuser


                so running this syntax squentially at command prompts solves my problem.



                 python manage.py makemigrations
                python manage.py migrate
                python manage.py createsuperuser
                python manage.py runserver






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 27 at 8:35









                Nancy MooreeNancy Mooree

                9021 gold badge3 silver badges10 bronze badges




                9021 gold badge3 silver badges10 bronze badges





















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55366238%2fhow-to-know-table-to-refrence-when-creating-json-web-token-in-django%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현