Anonymous
Omkar
https://youtu.be/w4pnWgEgv8E
Omkar
About django signals watch full video
coder
Hello; Need help for i use craete pdf in for loop have save in side object. let me know do; c = canvas.Canvas(pdf_file + ".pdf", pagesize=A5) for ab in ["Red","Green","Black"]: c.save() color.object.create(pdf=ab)
Anonymous
How to convert request.data from any content type to json?
....
https://youtu.be/w4pnWgEgv8E
I think there is explaining very perfectly , But I don't know hindi ..😕
~~~
in my imagefield, the form is saving always default image...any one knows the soln?
~~~
share code via pastebin.org
https://pastebin.com/NeWgfmxr
Mirco
https://pastebin.com/NeWgfmxr
so even if you choose an image from your PC, it saves the default one ?
Mirco
Yes
are u sure the form has been submitted properly ?
~~~
are u sure the form has been submitted properly ?
Yes..all other data is correctly added...
~~~
are u sure the form has been submitted properly ?
https://pastebin.com/EuAWpeet Template
Mirco
share the view
~~~
share the view
https://pastebin.com/FjAPGGhm
Mirco
Ah you missed the request.FILES
Mirco
That's why it does not upload your images
Mirco
Change to p_form = UserProfileForm(request.POST, request.FILES) And it should work
Mirco
https://pastebin.com/FjAPGGhm
Read again documentation https://docs.djangoproject.com/en/3.2/topics/http/file-uploads/
Doragonsureiyā
thanks..it worked...👍🤝
You're welcome! 😊
Mirco
thanks..it worked...👍🤝
remember that u have everything inside Django docs
Its me pistaboy
How to put update method
Kool
Am looking for a good source of html email templates. Can anyone help
Python
Hi I wanna solve this error, Listen failure: module 'fcntl' has no attribute 'F_GETFD' On windows
Christof
O.НиколайlonamiSpodermanJosXa
WhiteKing007
Hey how can i install rest framework
Gaurav
Any know geodjango here
Anshu
Any know geodjango here
You can watch tutorials of luke, channel name:- pyplane That helped me a lot
Anshu
Hey how can i install rest framework
pip install djangorestframework on your virtual env You can also specify the version you want to install
Anshu
Is this also needes
To work with restframework u have to install package
WhiteKing007
Ok thank you
WhiteKing007
And what rest client is for
Mahesh
Ok thank you
https://www.django-rest-framework.org/ here is the official website of DRF
Ola
Thanks @anshu_deve
S
Good day! Does anyone know how one can extend a model based serializer with a file field?
VISHNU
For export pdf how can I use two model,I need to get data from two model for pdf.
Bwaks
hello i would like to add a bootstrap class to this django form label labels = { 'artist_name': 'Artists Name', 'event_name':'Event', 'event_description':'About The Event', } this class class="form-label" please help
プラティク
Go ask xinping
Pandit
Hi can anyone help me Where can i ask doubts related to web dev?
プラティク
Of covid?
Pandit
😂😂
Pandit
Hope u get a job soon Good luck
プラティク
Coz of your government whole world is jobless
Pandit
Coz of your government whole world is jobless
Not his fault though.. His country govt may be bad But not the citizens i hope
プラティク
I'm not saying anything to him I'm saying about his gov
Say my Name
How to get data into a dictionary from Queryset Object ?
Neeraj
I want to generate HTML to pdf, Example : user click on button and a pdf download, the pdf is actually certificate, which i issue after courses compilation. In the certificate an image is also present for logo and side border. Please help to genrate and download pdf of certificate using python django.
whatsinaname
A good playlist for making social network app in django?
Sunny
Any one have campus recruitment system using django project documentation
WhiteKing007
I cant import config from decouple
Doragonsureiyā
I cant import config from decouple
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
WhiteKing007
I cant import config from decouple
And i have already installed decouple module
Horlarwumhe
And i have already installed decouple module
Are you getting ImportError or ModuleNotFoundError ?
Arash
. I have webapp in django and my users have to monthly update theirs info . Should i use celery ?🙏🙏
Kevyn
You can use a contrab job monthly
Sherlock
in other framework related to java does one has to write sql queries to make migrations ? unlike DJango
Sherlock
python manage.py migrate vs python manage.py makemigrations app i'm new to django can you plz tell how these are different 🙏
Orbit
python manage.py migrate vs python manage.py makemigrations app i'm new to django can you plz tell how these are different 🙏
Makemigrations generates the required SQL queries according to the models. And migrate is used to run those queries on database.
Michael the wolf 🐺
hey guys, i am using django rest framework but the user is a seperate micro service with another database, in this case how to set the permission classes? do i have to use a custom decorator to every view? or is there a better way?
Rohan
When you get the request or the client sdk will take userid as argument everytime it does something user specific
Rohan
You can compute the permission in each class based view and return accordingly
Sherlock
I'm new to Django, what we write in installed app section say app name is polls - 'polls.apps.PollsConfig', vs 'polls', are both these same and have same meaning ?🙏
Sherlock
Yeah
we can write anyone , right? bro