Re: 405 Method Not Allowed

2022-08-05 Thread naveen Kumar
@api_view(['POST']) --> it means allow only post method Replace above with @api_view(['GET', 'POST']) if it need to allow get method as well On Fri, 5 Aug, 2022, 3:43 pm Umair Ramzan, wrote: > By default browsers makes GET requests. So you need to use some other > Clients such as postman to

Re: Attribute Error in Django model Foreign Key

2020-09-24 Thread naveen Kumar
i thinks it will be helpful if you place screenshots of you project file structure as you mentioned along with models, so that people can easily trace out the issue. On Thu, Sep 24, 2020 at 2:30 PM Pradyum Gupta wrote: > In My Django Project, there are two apps: Login and Company > > > > Th

Re: Create an invitation link using django rest framework?

2020-09-22 Thread naveen Kumar
class TokenGenerator(PasswordResetTokenGenerator): def _make_hash_value(self, user, timestamp): return ( six.text_type(user.pk) + six.text_type(timestamp) + six.text_type(user.username) ) account_activation_token = TokenGenerator() follow this you can hash bot

Re: How to reset password after otp verification

2020-09-20 Thread naveen Kumar
May I know when you need to reset password and y ? On Sun, 20 Sep, 2020, 3:00 pm Ashutosh Mishra, wrote: > unable to get what are you saying. > > > On Sunday, September 20, 2020 at 2:11:51 PM UTC+5:30 beignet...@gmail.com > wrote: > >> you can simply use dj-rest-auth >> >> Le dim. 20 sept. 2020

Re: Need help in project

2020-09-20 Thread naveen Kumar
What's the exact issue I can help you... On Sun, 20 Sep, 2020, 3:06 pm Ashutosh Mishra, wrote: > Hello everyone i am creating an project,can anyone help me its some > features. > i am posting the link > > https://marvelapp.com/prototype/150je746/screen/40505991 > > -- > You received this mess

Re: How can i get user login details from auth token is it possible

2020-08-30 Thread naveen Kumar
Just go to table ' auth_tokens ' there you can see a foreign key ' user_id ' linking to users table. So using auth_token you can get the record from auth_tokens table where u can retrieve user_id I think you got from here what to do On Sat, 29 Aug, 2020, 12:39 am yashwanth balanagu, < bala

Re: Hey, can anybody tell me that how to get author name instead of author ID

2020-07-06 Thread naveen Kumar
Send the screen shot of code along with serialised n model On Sun, 5 Jul 2020, 10:26 pm Suryansh Mathur, wrote: > can anybody tell me that how to get author name instead of author ID. > > Please See Attached Screenshot > > -- > You received this message because you are subscribed to the Google G

Re: API for order taking, editing and deleting in waiter applicattion and sending order items in the chef application with django web application

2020-04-05 Thread naveen Kumar
Yes you should On Sat, 4 Apr 2020, 6:43 pm Kushal Neupane, wrote: > I must work in rest framework sir > > On Sat, Apr 4, 2020, 18:56 naveen Kumar wrote: > >> You can go through DRF >> Google it you can find the docs where you can follow step by step to >> build th

Re: API for order taking, editing and deleting in waiter applicattion and sending order items in the chef application with django web application

2020-04-04 Thread naveen Kumar
You can go through DRF Google it you can find the docs where you can follow step by step to build the API On Sat, 4 Apr 2020, 5:49 pm Kushal Neupane, wrote: > I am working with resturant management system. i developed web application > in django and now need api to take orders from the waiter ap

Re: request.user is AnonymousUser

2020-03-02 Thread naveen Kumar
import the "TokenAuthentication" class as below 1. from rest_framework.authentication import TokenAuthentication and then declare the below statement in the view class 2.authentication_classes = [ TokenAuthentication] by using above two statements that you are making the django system to authen

Django Framework with Requests html library

2020-01-21 Thread naveen Kumar
is Requests html library works with django ? The error is while javascript rendering i am getting error like this thread is already running like these error i am getting when ever i tried it for webscraping -- You received this message because you are subscribed to the Google Groups "Django R