Muhammed
Can anyone suggest the best place and best way to learn Django
Krunal
I am trying to load pdf in iframe by giving path of pdf. It shows pdf well by opening html page but as soon as I try to open same page in Django project the pdf is not showing in page.
How to give local path instead of media URL?
Ashutosh
Ashutosh
Ashish
Okay
Adam
Hello
I need a Reverse Engineering specialist and a Cryptography specialist and a hardware hard drive specialist.
If anyone specializes in one of these areas, please send me a private message.
Keep in mind that this is a job offer.
thank you
Doragonsureiyā
Adam
Angela
Krunal
Ashutosh
Aariz
How can i install channels in django
Anonymous
Hello, I'm using UserCreationForm. But the user isn't being added to the database after submitted. but if i try to re-submit, django is warning that this user is already existing.
Help, please.
Akhil
+1
Bagas
From django documentation...
"The development server creates a new thread for each request it handles"
Should I use thread over proccess for production?
Krunal
Yes.
Still the pdf is not showing in iframe after setting src with JavaScript
Islomjon
SMTPSenderRefused at /sendemail/
(530, b'5.7.0 Authentication Required. Learn more at\n5.7.0 https://support.google.com/mail/?p=WantAuthError u9sm1556803ljj.115 - gsmtp', 'webmaster@localhost')
Islomjon
First name (optional)
Guys any help ??
https://stackoverflow.com/questions/64401946/websocket-connection-to-wss-failed-error-during-websocket-handshake-unexpe
I've been stuck for 4 days
pythonista
I have three models and when the user is logged in it can makes changes. But when I create a new user all the other users data is shown. I dont want this. I want different models for different users. I dont want to show the data of one user to other. What should be the relationship in my database? Any idea?
Gil
I have a question about desing models and database. Its a bit abstract...
I have a lot of models relationed by themselves...
A —— B ———-C
J———B———-C
H.——-B———-C
I———B———-C
........—-B———--C
(about 90 models)
I'm thinking about do a full mesh model playing with FK, like
/ B¬ / B¬ / B¬
A—C j—C H—C
I don't know if it will be worse in future. May be the only problem is that de DJango will be heavy with RAM? But I will gain velocity and segmentation on querying models, I think¿?.... I want to avoid tipical query obejctA.objectb.objecC.fieldfromC
Any idea..? Or experience?
Hapan
Getting Object type emp is not json serializable error ?
Previous one was working fine,but while creating API for another table getting this error
Anonymous
Hey all
Anonymous
I getting error ' Post objects is not iterable '
Mirco
Anonymous
Post.objects.filter(slug=slug).first()
Anonymous
Anonymous
Mirco
Please help
Share the full code via code sharing tools
Anonymous
I don't know sharing tool?
Mirco
Doragonsureiyā
I don't know sharing tool?
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
Mirco
Choose one of them
Anonymous
def post_detail(request, slug):
post = Post.objects.filter(slug=slug).first()
return render(request, 'blogs/post_detail.html', {'post': post})
Украинский
Know what? I bought some courses but I don't understand anything. Also I learned some from YouTube, but best way to learn Django - is books and official documentation.
Mirco
Mirco
Украинский
Random
Is it good
Pavel
Hi! I've got strange issue when POST data (by service webhook) contains dictionary.
In QueryDict i've got flat structure as {'leads[delete][0][id]': '4872761', 'leads[delete][0][status_id]': '35072212',....
I can't find any batteries for converting this to 'normal' dict as 'leads': {"delete":[{"id":"4874813","status_id":"35072212"...
Pavel
There is a lib for everything :) https://github.com/bernii/querystring-parser
Doragonsureiyā
Hi! This group is English-only. Please, translate your message into English and delete the non-english message. Or move to a group speaking your language (type "!ol" to see the list). Thank you.
Anonymous
hi
Anonymous
how can I create a django app and api endpoints for same app?
is it better to do it same views file or should i create another app for api?
Anonymous
If we not create database and directly run command createsuperuser then what happen???
Anonymous
Anonymous
After creating Api how to write code??
The mint of Linux **
I WANT TO THAT A USER SUBMIT A FORM SINGLE TIME ONLY HOW TO DO THAT IN DJANGO ?/
The mint of Linux **
i tried to return count = count +1 something like that !! if count ==0:
The mint of Linux **
else:
The mint of Linux **
but not working ...every time i reload the page this count value just again 0
Darth✧
The mint of Linux **
how to ??
Anonymous
How to use ckeditor in django
Nayan
Hi i am using django form, in that i am using drop down menu , in order to make dropdown menu as type and seach. I have used select2 as a type .
And the data in the dropdown menu i am populating from database.
My bug -
Completely data is not coming in dropdown menu when i add new record to it. I can see the new record in sql but not in dropdown menu.
Please can someone guide me on this ?
jamal
Guys i can say i am junior django dev can u give me some advices to level up my lvl
AleMVP
/.
Adil
Hi everyone! Guys, i run into NoReverseMatch error... i have used all methods on net to solve this problem but it didn't work. Please can anyone help me
The mint of Linux **
its common mistake
The mint of Linux **
in linking page plz shatre code
Mirco
The mint of Linux **
Mirco
The mint of Linux **
solve it if u can ? plz admin
xzenon
The mint of Linux **
so another model with autofield linking with this model ?
The mint of Linux **
@Anksak also suggested this !!
Mirco
The mint of Linux **
actually i want singel user should submit one for so no spam
Mirco
The mint of Linux **
name , image ,dob,gender
Mirco
name , image ,dob,gender
So they are info related to the user so yeah you can use a 1 to 1 related model to the User model and add also an attribute to save if the form has been sent