Kuth
Please study better what OAuth is and how it's integrated in a client You are a bit confused
So if the same purpose How is your suggestion to use please? I want my whole project is working like Google. They have user and the user and access all google products.
Kuth
Now I already have provider, and it's also working if I login with DRF
Kuth
Via API
Kuth
But my Front-End of my DRF is Angular, So which Oauth2 grant type do you recommend for development this please?
Anonymous
Can any body suggest me any Free course currently available or websites if any o r Tutorials through which we can learn
Anonymous
Anonymous
Can u pls suggest some book names
Mirco
Tqsm any free course
google is out there for u , just spend time on searching a bit Udemy is full of free courses for example
Mirco
Can u pls suggest some book names
Decoupled Django, Django for Beginners, 2 scoops of Django etc etc
Anonymous
Cool.tq micro
Mirco
Doragonsureiyā
Thanks
You're welcome! 😊
Hello
Hi Everyone can you please suggest me good and cheap Hosting Site for Django App
Hello
Thank you in Advance
Mirco
Heroku free tier, AWS free tier, PythonAnywhere
Python Guy
{'body': e.target.body.value, 'post': notecontent.id}- I am sending this content but it's giving data is not valid. my comment model https://dpaste.org/ur18
Anonymous
How to implement social media authentication in django rest framework Like: google, Facebook, appid With firebase....
Doragonsureiyā
How to implement social media authentication in django rest framework Like: google, Facebook, appid With firebase....
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
Ibrahim
If i using for in navbar thé menu disappears
Python Guy
How to automatically set user of post to user who created that post. I don't want to send username or id from fronted. I tried author=request.user but when I send data serializer is not valid
Python Guy
and if remove author from serializer, then I am not able to access author name in fronted to show
Nine Nine
How to begin with api creation and implement ml models with real data?
Doragonsureiyā
How to begin with api creation and implement ml models with real data?
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Dostow
Does someone knows how to do the user login for multiple users in drf? Kind of after login the user is redirected to the authorized screen for each of them depending on their profile type, thanks
Raja
In django, How to display two models data at a time in single table in front end??
Dostow
Add user type in the UserModel that u have
I did it already, it has the two attributes
Dostow
Someone told me the redirect has to be done from the front end after getting the token
Dostow
The front developer I'm working with uses react
Mirco
Someone told me the redirect has to be done from the front end after getting the token
Yup, if you are in a decoupled scenario, after getting the token the React app must redirect to the authorized page by including the token inside the Authorization header for the next calls
Dostow
Cool, i appreciate your help 🙏
Mirco
Cool, i appreciate your help 🙏
But for security reasons, the token must be set in an HttpOnly cookie by Django So instead of letting the client store the token, it's the backend that stores it inside secure cookie and use it for every next calls That cookie cannot be accessed by the client, so you can avoid XSS attacks
Dostow
Hmm interesting, I will check it out
Suhaib_0.0
I want to create a buy and sell website How do I put each category separately For example, the T-shirt with T-shirts jacket with jackets in the Models . file What to write on models page and views page I want help.
Suhaib_0.0
I want the t-shirt section to show up alone. And if the jacket section shows up alone, I don't want them to show up together in both sections.
cj
I want to create a buy and sell website How do I put each category separately For example, the T-shirt with T-shirts jacket with jackets in the Models . file What to write on models page and views page I want help.
that's some database theory ¯\_(ツ)_/¯ use a pencil and paper to draw your tables and relations first before even attempting to write code
cj
I couldn't write the code, so I'm asking for help.
don't write code yet, use pencil and paper first
Doragonsureiyā
Yes
Python Guy
Hi, my i am serializing author but only userid is sent from backend, I want username. What should I do?
Python Guy
S
Heey django developers I also want to learn django Please give some guidance.
Ali
can u elaborate?
Import ur authentication model and apply the query (if u only access the user id)
Ali
In most cases, if you have access to the userid, you are probably able to access the username.
Anonymous
Hi, my i am serializing author but only userid is sent from backend, I want username. What should I do?
userDetails = User.objects.get(id =userid) username = userDetails.username
Nobody
Can we convert pdf into flipbook using django??
Charly
Can we convert pdf into flipbook using django??
That is done in frontend, so not directly related with Django
Piyush
When i use django and use manually css is working but when i try to download bootstrap css and use in my django project it's not working
Piyush
Please help me
SuperN00b
Possible, but using CDN is the easiest way
Piyush
Possible, but using CDN is the easiest way
Thanks bro for replying But I want to try download bootstrap css and add manually
𝕁𝕒𝕧𝕠𝕙𝕚𝕣
Thanks bro for replying But I want to try download bootstrap css and add manually
Put it in your static folder, load it in your base template using {% load static %} and if it doesn't work try collecting static files with command python3 manage.py collectstatic
Python Guy
my pagination is not wokring. I did exactly what tutorial say. eg REST_FRAMEWORK = { 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', 'PAGE_SIZE': 10 }
Mirco
no i am not getting that
ok it's not working then
Python Guy
ok it's not working then
so, what should I do? I did this too but not working: https://dpaste.org/hs5Y
Python Guy
which is the response u get ?
https://dpaste.org/HeGO
Mirco
https://dpaste.org/HeGO
https://dpaste.org/TNBk#L2,3,5,9 try this changes leave the default pagination in settings
Amin
I have a routing problem but i don't know why https://tehranrobotic.com I don't know , what should I do When I inspec I recognize that The url changes bad working For example When you click on contact its change the url completely And the href In html will be change from 'contact' to 'contact/contact/'
Amin
Somebody help please
Piyush
Somebody help please
Show your urls.py and href in html
Amin
Show your urls.py and href in html
Unfortunately Images are not allowed here 😕 And I should mention It has disconnection and connection Some times it's working right like now And sometimes it's working wrong like last night
Shahrukh
Hi guys I would like to know whether atom ide is used for building django projects in real time or not
Shahrukh
Is atom ide is preferred in real time software industry
Shahrukh
For building web application in django