Of course
Hello. İ send a password reset request and in book says that you now see output email text in command line console but İ can't find that text. Or İ don't find command line consoles???
Anonymous
Hi how to pass the token in header using django in python
Anonymous
Implementation for rest api
H.G.
But can't see anything
what's the error
Denis
r u testing your login view ?
kind of i have button *Log in with facebook* and its working but some people in my team has no access to facebook and we want to bypass auth on dev environment
Denis
Just use multiple settings and for dev settings use a different Auth backend
can I set up hardcoded values? email, name, id ? I did not find it in docs
Mirco
can I set up hardcoded values? email, name, id ? I did not find it in docs
Read again what I sent you For dev you can totally deactivate allauth if you wanna bypass it
Mirco
!search
Doragonsureiyā
These single steps will help you a lot: 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
Denis
I wanna log in by pressing button
Mirco
I wanna log in by pressing button
and you will do the same, but without starting the allauth process for dev env u can simple use the default django auth backend with username and pwd
Denis
auth backend is enough
its allauth.account.auth_backends.AuthenticationBackend now may I ask what should I use instead?
Denis
it has no alternative methods https://github.com/pennersr/django-allauth/blob/master/allauth/account/auth_backends.py
Denis
I set up django.contrib.auth.backends.AllowAllUsersRemoteUserBackend nothing changed
Denis
'django.contrib.auth.backends.ModelBackend',
it keeps redirecting me to https://www.facebook.com/v13.0/dialog/oauth?
Denis
AUTHENTICATION_BACKENDS = [ "django.contrib.auth.backends.ModelBackend", ]
Mirco
it keeps redirecting me to https://www.facebook.com/v13.0/dialog/oauth?
It's up to the URL your button is pointing to
Denis
It's up to the URL your button is pointing to
I think its coming from allauth.socialaccount.providers.facebook
Mirco
I think its coming from allauth.socialaccount.providers.facebook
It's hard to help u without checking code, sorry
Denis
It's hard to help u without checking code, sorry
can you give me some working example?
Anonymous
Yes Denis bro share your screen to micro
Anonymous
Mirco bro
Mirco
Yes Denis bro share your screen to micro
No sharing screens, and not your bro 🙂
Anonymous
Sharing screen can make easy with good meet.
Mirco
can you give me some working example?
You have to change also your template / view if you are on dev env and accept username and pwd
Mirco
Sharing screen can make easy with good meet.
Sharing code makes stuff easier, not screens
Anonymous
Sharing code can be mistake on line but screen help easily in minimum time.
Dark Angel
Sharing screen can make easy with good meet.
https://dpaste.org/ paste code online and share it
Anonymous
Google Mee t
Anonymous
Is best
Dark Angel
use online platform like replit to share whole project
Denis
can you help me to modify that? https://github.com/pennersr/django-allauth/blob/master/allauth/socialaccount/providers/facebook/tests.py
Anonymous
Yes do what make u easy.
Mirco
Denis
i want to copy-paste it
Mirco
in tests they do mocking in some magic way
It's not magic, it's just mocking the external request to Facebook
Mirco
i want to copy-paste it
The worst way you can do You have to understand what you do, not just copy and paste
Mirco
yep. i need that
If you don't share some code of your view you wanna test, it's hard to help u
Adam
Hello, everyone. I need to know how to retrieve data sent by a third party site to my server. Details: 1) I have a link to a qr code on my website. 2) User clicks on this link, he is first directed to a third party site that collects some data, and then is redirected to my site, registration page (all this happens in 1-2 seconds) Is there any way to find out the link from which the user was redirected and the information this site sends to my server?
Leon
Hi, I have an assignment to create an online learning​platform. I have teacher and user as the users of the system. How​ can I best implement this scenario in the models?
Hell
I wanted to clarify, maybe someone came across a situation: I implemented django full-text search through postgresql fulltext. full-text works fine, but I wanted to do a fuzzy search - I found information in postg itself that you can split the text into problems and add & to the total value, which will result in a fuzzy search. but for some reason I get error error: syntax error in tsquery: "ab:+ http://linkode.org/#KzBBL8YXG1TU7Rx4wNK3M4 - link code
Shubham
Hiii i want help to create sub domain in my project. Example.com I have a domain but i want username.example.com how to create dynamic for particular user
Deepu
: I have 5 data in my django database with same name but different time Like box1. Time =12.06 box1. Time =12.07 box1. Time =12.08 box1. Time =12.09 box1. Time =12.10 So my question is that how can i get first box and last box box1. Time =12.06 And box1. Time =12.10 Only
Deepu
But their is many box line box2 box3
Deepu
And i wanna do all bax first and last value show only
Michael
categories = Category.objects.all()[0:3] Please what is the meaning of this, i saw it in a blog post and used it in my code (views.py) What exactly does it do?
Michael
categories = Category.objects.all()[0:3]
Michael
Can you explain in simpler terms?
Mirco
Can you explain in simpler terms?
Instead of returning all data, that code is limiting the query In SQL is LIMIT keyword So you have to know what limit in SQL is and what is slicing in python
Michael
oh
Michael
i don't know much about that, i'm new with django
Mirco
In simple terms, that query returns the first 3 categories from database
Mirco
Y do i have to LIMIT the queries?
It depends on your needs
Neo
Sorry wrong group i thought this was django
Neo
Y do i have to LIMIT the queries?
Put that "query" into google please
Michael
Put that "query" into google please
Excuse me.. not every one is nerd like you, i prefer when people explain the code to me in simpler and understandable terms, so if you don;t want to help, please stay out Thank You
Neo
Or if you insist on not following the rules and you wish to debate this in public, i could just ban you and we're cool here
Mirco
Michael
Or if you insist on not following the rules and you wish to debate this in public, i could just ban you and we're cool here
Feel free to ban me, whenever you feel like, after all you are the admin, i would have shared my code in my views.py file but images are not allowed in the group I've been facing issues in my blog with django and i'm seeking help.
Michael
Just remove the slicing
Thanks, Micro I will message you privately
Mirco
Thanks, Micro I will message you privately
Nope, I don't answer privately and it's prohibited by group rules So don't do it