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??
Shiva
thats not what its for, use django generic views instead
Can I do python operations in Django views file with value posted by user ??? And is possible to return that data ?
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
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
Wow that's great 😧
How do you think Django is made ? 😂
Shiva
How do you think Django is made ? 😂
I am new to this Django 😁😁😁
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
Mirco
I am new to this Django 😁😁😁
Even more so you should know its basic so how Django is made 😊
Mirco
with love ❤️
For sure 😎
Rohan
I want latest value posted by user
.order_by('-id')
Rohan
Take the first object of that queryset then
Mirco
Take the first object of that queryset then
@shivakid_offl remember Django orm offers you first() and last()
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
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?
Anonymous
Any recommended books for DRF?
Yeah I need it too, Can you tell me when you find?
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
@PulsatingQuasar why is asking for paid help here offtopic? seeking to understand.
It is offtopic because it's in no way helping someone to get better neither you're asking a proper question for help
Rohan
It's more like a job advertisement that is related to django
Am I
thanks @PulsatingQuasar
Mirco
Yeah I need it too, Can you tell me when you find?
official docs are so good as already said by @PulsatingQuasar if u wanna read a good book , imho William Vincent's one is for ya
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?
Cat
You mean by startapp?
well...lemme check it...
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
Also, I think you should read a bit before diving in
Rohan
Let me hook you up with a nice resource
Cat
Let me hook you up with a nice resource
that's quite nice of you.
Rohan
https://realpython.com/get-started-with-django-1/
Anonymous
Introduction · Django Girls Tutorial https://tutorial.djangogirls.org/en/
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😊