DRF and React - request.user is "Anonymous user"

2022-09-11 Thread Jackson Patrick
I have used simple JWT for authentication and i have successfully logged in and am getting tokens also. But when i do a request.user in backend i get "Annonymous user". Tried passing Authorization header in axios post in FE REACT but it throws error. Am setting both refresh and access in a state

Customise Django Models

2022-09-11 Thread Jishnu C K
Hi, Some blogs I have written, hope someone find it useful :) https://jishnuck.medium.com/customizing-django-models-to-facilitate-user-restricted-data-768fe8206f82 Jishnu C K

Re: Why I love Django

2022-09-11 Thread Paul Onteri
Thanks! On Sunday, 11 September 2022 at 05:06:58 UTC+3 robbi...@gmail.com wrote: > Hello Paul > > On 10/9/2022 9:15 pm, Paul Onteri wrote: > > Choosing a web framework is hard. Especially now when there are a lot of > > frameworks on the market, each designed to address different project > >

Does not displayed radio button in tutorial04

2022-09-11 Thread Mats
Hi, Member I am going through the tutorial at docs.djangoproject.com." I am implementing a form in "Writing your first Django app, part 4" but when I enter the code as per the tutorial, the radio buttons on the form do not appear. https://docs.djangoproject.com/en/4.1/intro/tutorial04/ I

Re: DJANGO ADMIN SPECIFICATION

2022-09-11 Thread chahat kaur
Yes On Sun, Sep 11, 2022, 00:48 Dushime Mudahera Richard wrote: > yeah All u said can be done in short """CRUD > > > *Best Regards * > *Dushime Mudahera Richard* > *Google Crowdsource Influencer* > *GDSC Lead 2021-2022 Bugema University* > *Visit :* https://www.facebook.com/BSA256 > *Visit

Re: How to Filter Children Model In Django RestFramework

2022-09-11 Thread Abhineet Baranwal
Just use that foreign key field name with double underscore filter field name. For example - you have a parent model ClassRoom having it's children model Student which is referred as student fk in ClassRoom. So if you want to filter student name from ClassRoom api then you can just write :

How to Filter Children Model In Django RestFramework

2022-09-11 Thread Renfer Richards
https://stackoverflow.com/q/73677543/1985 -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion

Re: Filter by date range

2022-09-11 Thread Muhammad Juwaini Abdul Rahman
Either there's no data for that month or your query is wrongly formatted. Probably you can try your query in the shell first. On Sun, 11 Sept 2022 at 02:12, tech george wrote: > Hello Muhammad, > > I'm choosing dates between 2022-07-01 and 2022-07-30 which have records in > the db. > > I hope i