Rajat
Rajat
I had give him logic about how to create cart in backend 😄
Hello
Pls help me in code
Hello
I am passing image link in views which will vary and image is in static folder so how can I show that passed image URL in templating
Hello
Please help me
Hello
I am passing image link in views which will vary and image is in static folder so how can I show that passed image URL in templating
Michael the wolf 🐺
did anyone worked with django cas ?
Rahkmanuly
Hello there! Does any have an experience with converting any format of documents (docx, pdf and etc) to html template?
coder
Any DRF expert?
Rohan
Doragonsureiyā
Any DRF expert?
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
coder
Doragonsureiyā
🚫 Riyadh [921254445] is already banned.
coder
Hello; got error this is update method; is it any wrong of code? def update(self, instance, validated_data,pk=None):
print("Hello")
instance=Consumer.objects.get(id=pk)
newspaper_list = validated_data.pop('newspaper_of')
instance.name = validated_data.get('name', instance.name)
instance.ac_no = validated_data.get('ac_no', instance.ac_no)
instance.address = validated_data.get('address', instance.address)
instance.telephone = validated_data.get('telephone', instance.telephone)
instance.email = validated_data.get('email', instance.email)
instance.note = validated_data.get('note', instance.note)
instance.delivary_charge = validated_data.get('delivary_charge', instance.delivary_charge)
instance.status = validated_data.get('status', instance.status)
add_list = []
for list in newspaper_list:
list = Newspaper.object.get(newspaper=list["newspaper"])
add_list.append(list)
pass
instance.newspaper_of =add_list
instance.save()
print(instance, "List of items")
return instance
How to rectify for nested serializer update method; if any expert in django rest seniors; please guide this thanks
Vanita
Hii to ol members
I am new to django....plz help me as i want to render my html file but that file is on processing on localhost but if i use HttpResponse then it works but not rendering html template.
Anyone can help me to figure out my problem
TIA
âshîsh
Vanita
I am doing the same using class like
class Login(View):
return render(request, "sigin.html")
Nani
Ædel
Vanita
Zaid
i craete a store procedure usinf postgress db store procedure name is emplist2
Zaid
im not able to call my store procedure
Zaid
class EmployeeViewset(viewsets.ModelViewSet):
queryset = models.Service.objects.raw("call emplist2()")
serializer_class = serializers.ServiceSerializer
Zaid
please help me
âshîsh
I habe also done this change in urls.py
You have not created function inside your class.
If your request type is get the you have to define a get function inside your class.
Ex-
class Login(View):
def get(self, request):
return render(request, "sigin.html")
Vanita
class Login(View):
def get(self,request):
return render(request,"lookcare/signin.html")
Vanita
this is the definition of my class
Nazrul Islam
hi everyone
Zaid
Zaid
yusof
Anyone work with swagger ui?
Jitendra Kumar
How to custom Auto increment that start from 1000 ?
Jitendra Kumar
Please anyone
can anyone please solve this question
write a python program function that takes an integer 'n' as input and calculate the value of following series:
1! + 2! 3!+..... n!
its urgent
kuzmich
Jitendra Kumar
Then
Kiran
Hello Django Community,
I'm Kiran Maharana from TCET, Mumbai and Secretary of ACM-IT. We are organizing an Event on Latest Trend in Web Technology and we are searching for resource person to deliver lecture. If you are interested in delivering as Resource Person. So, you can contact me for further details. Thank You, waiting for your positive reply.
tushar
hello how i handel this eror if we dont have sheet_id in session otp1=request.session['sheet_id']
tushar
Hanif Dwy
tushar
Abhijeet
Urgent...
I have a godaddy linux hosting
Can i host django in cpanel of godaddy
If anyone has any experience or knowledge please pm me.
Allan
Hello Django Devs, do we have anyone how has used django -tenants, cause I want to start a project and it will require me using it.
Anonymous
Anonymous
Is there any way to use the django or python as the backend for the android and iOS app .
In simply I want to say that I have a an website in django
Can I create the app from it by using same database.
Like by using flutter or react native but related to python or django
I hope you understand what I want to say .
I am going to start app development.
Anonymous
Anonymous
and consume it using your ios/android clients
Anonymous
How can I create an app
Please give me suggestions like react native or android studios or flutter to use that api
Javohir
youtube.com/watch?v=VnztChBw7Og
Chikal
my OneToOneField is a dropdown , I want to make it like common inputfield, how to do it ?
Vasilii
what does localizations/translations mean?
If you wish to use localizations/translations, simply add rest_framework_simplejwt to INSTALLED_APPS
Kasheef
NoReverseMatch at /
Reverse for 'detail' with arguments '('',)' not found. 1 pattern(s) tried: ['(?P<pk>[^/]+)/$']
Kasheef
Can someone help me in this error
Nani
RaxorRombo
django entire pdf
RaxorRombo
i needed
RaxorRombo
sry ppt
RaxorRombo
simple to identify
Akkiii
Anonymous
Hi guys
I have four try blocks
How can we execute finally block if we having multiple try and except block with out using return
Almaz
Hello, everyone! Please, who can help me?
https://dpaste.org/BZni#L7
Veeru
Veeru
template_name
Almaz
Kasheef
Veeru
For line 62 you can write
path('about/', TemplateView.as_view(template_name="about.html")),
Veeru
Ok what is the error?
Veeru
Just revert back
Elie
Hi
How to redirect every url access to https
Veeru
And see what happening
shila
Hey
shila
Anyone help me in django
Elie
Yes i do have it
Almaz
Ok what is the error?
Sorry, you advice helped me, but I don't wanna make changes in urls file, because I'm watching video tutorial and i wanna do all like in video