GNU/Matt
Not having a connection object
GNU/Matt
send the code when you connect to the db
Mirco
You mean send_mail into loop ?
Shubham
Hey guys
Shubham
I need to make screencast app
Shubham
Paid project anybody??
cj
Shekhar
hi
Shekhar
an object return <open file u'/home/shekhar/workspace/cloned/simple-file-upload/media/documents/file_example_WAV_2MG', mode 'wb+' at 0x7f343d1a0f60>
Shekhar
how to save it ?
Turtle_In_Hurry
Reverse foreign key problem
class Make:
name = models.CharField(max_length=200)
class MakeContent:
make = models.ForeignKey(Make)
published = models.BooleanField()
what is the best way to filter out all Make objects and each one's related MakeContents where published = True.
Sai
Mohit, it gives error when there is no data in the Make table? Isn't it?
Sai
Just want to know brother
Mohit
Turtle_In_Hurry
Mohit
Published=[]
for make in Make.objects.all():
published. Push (makeContent.objects.filter(make=make,published =True))
Mohit
Check if exists()
Mohit
If you want to find, all make objects belonging to amake content, it's makecontent.make_set
Turtle_In_Hurry
Oh great
Turtle_In_Hurry
Thanks I'll try it
Mirco
Shiva
Alexander
Shiva
def get(self,request):
queryset = Coord.objects.all()
for i in queryset:
print(i)
Hey guys how retrieve data by their field name ??
I have four data field " lat , long , maptype , zoom " in models.py
Sander
i.lat, i.long, i.zoom i.maptype
Gaurav
Shiva
Shiva
Gaurav
Rohan
Rohan
Take the first object of that queryset then
Jalotra
Hey people, I have a python package that downloads stuff from the web.I want to make a webapi that runs this script in the backend.How should I approach this with django RestFramework.
Anonymous
Hi all. I’m running a Django app, and one of the pages takes really long to load, because the backend needs a lot of time to serve all the info. If I try to open another page of the app in new browser tab, it won’t load at all. However, if I try accessing other pages of the app from another computer, there are no loading issues. Any suggestions how to start solving this?
Anonymous
Started thinking it was a problem with low count of Gunicorn workers
Anonymous
But the more I think about it, could it be the browser just gets overloaded?
Sunnat
how to python ,printing word document?
Shiva
I changed my model viewset to generic view to override post method , but when I post data from post man ,it's not saving data's to model
Sunnat
cj
or pdf document
there are libraries for that, just google them 😉
Sai
AWS channel link please?
Михаил
Anonymous
Thanks. Though I’ve already gone through the first few results. I was more looking for some practical advice on the specific type of issue. Of course, if anyone here faced such a problem before.
Михаил
Try to localize your problem
Михаил
Is it DB query or weserver or something else
Adam
Any recommended books for DRF?
Am I
I'm looking for someone (paid) to help me upgrade an existing django project from 1.10 to 2.2 and python 2—>3
Am I
anyone interested?
Михаил
Ping me pm
Rohan
Rohan
Official docs are really neat
Am I
@PulsatingQuasar why is asking for paid help here offtopic? seeking to understand.
Rohan
It's more like a job advertisement that is related to django
Am I
thanks @PulsatingQuasar
Cat
hey, guys, I opened an app in Django and accidently closed it, how can I refer to the app created? I remember how to reopen a project, what about an app?
Rohan
Rohan
Wait no
Rohan
I mean how you created app
Rohan
Do not create it again if you already created one.
Cat
I mean how you created app
I used workon "some title" and then python manage.py startapp "name of app"... Then accidently closed that program and want to get back to trace... I just follow instructions I watch on youtube...
Rohan
Rohan
Also, I think you should read a bit before diving in
Rohan
Let me hook you up with a nice resource
Cat
Rohan
https://realpython.com/get-started-with-django-1/
Cat
Anonymous
Anonymous
Introduction · Django Girls Tutorial
https://tutorial.djangogirls.org/en/
Cat
Nitesh
Why staticfiles and user uploads do not work when Debug is set to False.
Mirco
I've added this one to @pythonres as lots of people, especially beginners, are used to write lots of logic into templates but it's not a "best practice" as lots of senior django devs also say
in this article there are some tips to move logic into the right place sand write a clean and dry code😊