@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
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo