MG
yeah, this is working
PV
Sendgrid SMTP return connection refused error at python anywhere
Mirco
👍🏻
Jimmies San
👍🏻
oh many thanks mate. it's so hard to read the answers on google! thank you again! legend !!1111
Aswath
i have a doubt here
Aswath
i have a model that needs to be a one to one field to the user and initially not point to any user. How might i go about implementing this ?
Aswath
Anyone have any suggestions ?
Alex
Aswath
Yeah jus tried it now.
Aswath
Thanks
Doragonsureiyā
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 firsts results
JK
.
Select * from (
Select distinct on (id)
Name
Email
From User
) as list_of_output
Order by list_of_output.name
How to write a query like this in django orm?
cj
cj
but, you don't really need to make .distinct("id") as it's a primary key, it won't be repeated
cj
so you just need to order the users by their "name"
Alejandro
MemoryError at /api/send_message/
Cannot allocate write+execute memory for ffi.callback().
Alejandro
????
.
cj
.
thats why i want to add distinct on id and add order by name
cj
I gave you a solution based on the question you asked, if you expect people to read your mind, well... IDK what to tell you
.
Doragonsureiyā
Alejandro
when they use the pusher library they have had this error:
Cannot allocate write+execute memory for ffi.callback()
Alejandro
??
cj
Dhruva
Can someone help me with SEO optimization in the django website
Anonymous
how integrate 2fa (2 factor authentication) using twilio guys
Jimmies San
@c0x6A i never remember how to use bot to ban people
Jimmies San
done. manually.
cj
cj
or /warn some reason to just warn
Jimmies San
Cesar
Jimmies San
Hari
Hi @ceterre i want to learn python any best source
Dcruz
Hari
Can you share links here Dennis
Hari
Or pm me
Dcruz
Can you share links here Dennis
https://www.google.com/url?sa=t&source=web&rct=j&url=https://docs.python.org/3/tutorial/&ved=2ahUKEwiIxMGVlZvnAhXttlkKHd76CBwQFjAAegQIAhAB&usg=AOvVaw1b8TtAqPMZM1ZRY6D8V-hW
Hari
How to write test cases in python?
Cesar
Looking for Django tutorials? you can follow these three recommended ones:
* Official documentation and tutorial
* Tutorial from MDN
* Tutorial from django-girls
Cesar
Hari
Cesar
I personally liked django-girls
Anonymous
Guy's recommend me a best editor for development of django projects,
I used pycharm all the things worked fine but after some days it crashes my front-end template, backend remains good but frontend disturbed
How to fix this...?
Aditya
Sublime text
Anonymous
Anonymous
Dhruva
Dhruva
Rollyourownseo is not supported in latest one
Anonymous
Hello my friends.
I want to create project with authentication and authorization. There will be to user types, student and teacher. Do you some tutorials where presented smth like this “login -> if student logged opened student page, same with teacher.
May be someone had experience in this?
Thank you 😊
cj
Anonymous
Thank you, cj
S
How to add music media in django like pictures
Can anybody tell??
Cesar
Sh
Assalamu Alaykum friends.
Who has clean open source project under drf, for learning purpose?
enansi
Hi, all for automating the deployment of my Django project, is it best practice to keep an "ansible/" folder in in my project? or should I keep ansible as a separte project in Git?
Alex
Alex
*for example
enansi
Alex
Alex
matter of taste
Alex
imho
PV
http://dpaste.com/3JJVW5P
PV
ConnectionRefusedError at /app/accounts/register/
[Errno 111] Connection refused
PV
On registration, i am using send grid smtp
V
Maybe theres some "Django way " to do this. Please help
V
js code like this
let data = {
login: el.closest("form").querySelector("input[name=login]").value,
password: el.closest("form").querySelector("input[name=password]").value
}
console.log(data);
let response = await fetch(url, {
method: 'POST',
body: JSON.stringify(data),
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
'X-CSRFToken': csrftoken,
"X-Requested-With": "XMLHttpRequest"
}
});
if (response.ok) {
let json = await response.json();
console.log(json)
} else {
console.log(el)
el.closest("form").querySelector(".form_error").style.display = "block";
el.closest("form").querySelector(".form_error").innerHTML = error_html;
console.log(el.closest("form").querySelector(".form_error"));
}
Alex
my eyes are bleeding
Alex