Muhammed
Can anyone suggest the best place and best way to learn Django
Hi, I’m using constance config to store my settings in my app. Can I store json objects inside config?
I faced a problem when I tried to store some dynamic settings. There is a limit of value (error: value too for type character varying(255) ). Example of what I did [{‘title’:’good’, ‘score’:70}, {‘title’:’fine’, ‘score’:40}, ...etc] Any suggestions to make it happens in config? Or just making a model for that property? (property values model)
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
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?
If u are using iframe, you can manually set src for iframe using javascript in Frontend size.. In this case djnago won't do anything bcz at the time of template rendering iframe was not active.
Ashutosh
Can anyone suggest the best place and best way to learn Django
https://www.youtube.com/playlist?list=PL6gx4Cwl9DGBlmzzFcLgDhKTTfNLfX1IK I found this very useful and in proper flow..
Ashutosh
Hi, I’m using constance config to store my settings in my app. Can I store json objects inside config?
Well I have no idea..about that... As it's just model.. You can define your function inside to parse JSON data.. And use it as u need..
Ashutosh
Hey guys would you recommend direct dive into django without the knowledge of python. A guy who has strong concepts of java and oops and can understand the syntax of python can be directly get started with django?
Well you can not do that.. As django is python based framework.. So just get least basic idea of python3 and it's interpreter behaviour.... Then you are GTG.
Ashish
How do I setup or install docker in Django
Hello friends I need assistance i am stucked in task, is there some who have expertise in django and flask please help me .... Ping me
Doragonsureiyā
Hello friends I need assistance i am stucked in task, is there some who have expertise in django and flask please help me .... Ping me
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~80,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
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
Angela
hope it helps
Alittle😔
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')
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 '
Anonymous
Post.objects.filter(slug=slug).first()
Mirco
Please help
Share the full code via code sharing tools
Anonymous
I don't know sharing tool?
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.
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
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✧
If we not create database and directly run command createsuperuser then what happen???
It will tell u to migrate the tables first then create superuser
Sai
I WANT TO THAT A USER SUBMIT A FORM SINGLE TIME ONLY HOW TO DO THAT IN DJANGO ?/
Add one flag in your table like user_submitted_form. If user submitted then set true and check for next time
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 ?
Darth✧
How to use ckeditor in django
https://pypi.org/project/django-ckeditor/ Read it
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
The mint of Linux **
There's no need to write in upper case 🙂
actually caps on , i did't notice
The mint of Linux **
solve it if u can ? plz admin
Mirco
solve it if u can ? plz admin
U need to save that count, it's obvious that everytime it will be refreshed if you don't save it
The mint of Linux **
so another model with autofield linking with this model ?
The mint of Linux **
@Anksak also suggested this !!
Mirco
so another model with autofield linking with this model ?
I don't know what's the goal of the form
The mint of Linux **
actually i want singel user should submit one for so no spam
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