William
Only they Store
Use an Authentication system and create data for the model2. As the user logged in you will have the user info in request.user
akash
Refer this link
Thanks 😊😊😊
Anonymous
Instead of get use filter
Still happening 😢
William
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
William
Share the code via above methods
Vishnu
Hi guys I'm working on a test series app Where I have to upload mathematical formula. How can I add mathematical formulas in my website.
Anonymous
Check the value is present in the database or not using the Django admin site or using DB Browser for sqlite3
There will be some non existing in the db, but I would like to continue the process
Dev__master
Check the value is present in the database or not using the Django admin site or using DB Browser for sqlite3
Yes try to check that first, if value is there that query must give you the value
Anonymous
Hi everyone I started learning Django and I cannot find good content
Anonymous
Can you give me any help?
Anonymous
Great yt videos
Anonymous
Anonymous
Dennis ivy
Thank ʼs a lot
Niloy
Please help me to make a custom user model
Niloy
I am working on a project
William
Search AbstractUser in Django documentation
Niloy
I searched and I am having some problem
Niloy
There
Niloy
Can we talk in private chat then I can elaborate my idea
Droll55
Hello. I need some help. So the problem is, that i added qr code generation to my project and everything was ok. But then i thought to separate qr code creation from model in to another method and now i am stuck for a few days. Here how it was (and worked) https://dpaste.org/OTrr#L23 And here how it looks now and should be but does not work https://dpaste.org/6Oim . So how can fix this? Thanks
Anonymous
Dennis ivy
Perfect
The
I am not able to point out difference between class Foo: and class Foo(): Can sumbody help me both aren't giving error
Lino
Hi guys, can you suggest a good reporting tool for Django.
Maz
Hi guys, can you suggest a good reporting tool for Django.
https://djangopackages.org/grids/g/reporting/
Kedar
Can someone provide best resourses for learning Django?
Doragonsureiyā
Can someone provide best resourses for learning Django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Scary
hello , how can i print a list on a table from a database i have tried this but it is not working can you help resolve this issue https://del.dog/printList.txt
Damodara
Hi Guys, can you please suggest python+django interview questions
Aditya
Hello Coders, This is Aditya here .How are you, i wish some coders from all of you also having interest in Python django. I want to make a big project in this stack i need python Django developer for handling the backend. So anyone interested DM me 😀
Anonymous
does anyone know how to debug django return blank page? there is not any error info and log( i had googled, i am not use {{block.super}})
Anonymous
yes, thats had to Screening the problem
Anonymous
I want to add dark mode to my site
Anonymous
Made of Django
Anonymous
Where do I get the code and How do I do that ? Any idea ?
190031710_VATTIKUTI
Anyone can suggest me how to read the inputs in for loop from html
NIDESH
Any one worked with multi tenant with my sql database?
Aswith
I want to add dark mode to my site
pip install django-dark use it
Aswith
django-dark · PyPI https://pypi.org/project/django-dark/
Anonymous
Anonymous
Okay no problem thank you for this
William
I mean I want a switch dark light switch
You need to use two different style sheets and with the help of javascript you can do it
William
Search in youtube
Ankit
Can anyone tell how to implement bootstrap if I am using usercreationform
Anonymous
I tried it how to do that
Axror
Hi everyone. Pls help me that how to save to database image and math formulas from pdf in django. or advise me other best way manage math formulas and images
Yavno
def ecg_print(ecg): pdf_path = ecg.ecg_result pages = convert_from_path(pdf_path.file.name, 500) images = f"{ecg.id}" for image in pages: image.save(image, 'JPEG') 'PpmImageFile' object has no attribute 'write' what is problem?PLZ help
Anonymous
how to solve fakepath?
Anonymous
when uploading image from js?
Anonymous
smo knows?
William
Can anyone tell how to implement bootstrap if I am using usercreationform
You need to create a form using bootstrap in an HTML file and you need to validate from views
William
I don't think you can use bootstrap forms with the manually created form in forms.py
Anonymous
how to solve fakepath?
Amir
Hi, How i can create a model that auto generated a short slug for articles? And when the user goes to the short url , views search it in DB and redirect the user to the main slug. a random 6-letter word between all letters and numbers that is automatically generated in models i haven't any idea about it🙏
Shoxrux
Is it possible to make chained dropdown list in django admin
William
Anyone can suggest me how to read the inputs in for loop from html
You want to read the data from the input box?
190031710_VATTIKUTI
Yeah
190031710_VATTIKUTI
I am getting multivalue e
190031710_VATTIKUTI
Error*
190031710_VATTIKUTI
I am using for loop for that form in html
Himanshu
Hello
Himanshu
Which hosting should we use for django?
Himanshu
For testing
William
If you have multiple input fields you can retrieve data from the name
Ganesh
I don't think you can use bootstrap forms with the manually created form in forms.py
You can use , just use widgets in forms and specify bootstrap classes
William
Like if the form is GET then you can do request.GET.get(name of the input) Else if the form is POST then u can do request.POST.get(name of the input field)