Re: How to use Django with python-requests to fetch data from google api?

2019-05-09 Thread Krystian
Hey Joe, There was a spelling mistake :D i've been sitting so long on this and didn't saw it W dniu czwartek, 9 maja 2019 22:35:12 UTC+2 użytkownik Krystian napisał: > > Hi there, > > I was trying today just for myself learning to get data from google books > api

Re: How to use Django with python-requests to fetch data from google api?

2019-05-09 Thread Krystian
Hey, I've updated some code and now I think it should work but the problem is I guess with list book = {} def api(request): book = {} if 'book' in request.GET: book = request.GET['book'] url = 'https://www.googleapis.com/books/v1/volumes?q=%s' % book reponse =

Re: How to use Django with python-requests to fetch data from google api?

2019-05-09 Thread Krystian
Hi Joe, Thanks you for clarying :) anyway now is KeyError and i dont know why the request is wrong, should I add the "items" before? Because https://jsoneditoronline.org/ shows that this data from google books api looks like this and maybe request is wrong? object►items►0►volumeInfo►authors►

Re: How to Create Program to get current temperature of computer cpu?

2019-05-09 Thread Manas Nikam
Go through these article https://medium.freecodecamp.org/using-psutil-in-python-8623d9fac8dde On Thu, May 9, 2019 at 4:19 PM Jani Tiainen wrote: > Hi. > > This is not actually Django issue. > > I bet there are several libs that can do it. > > > ke 8. toukok. 2019 klo 17.01 Mayur Bagul >

Re: How to use Django with python-requests to fetch data from google api?

2019-05-09 Thread Joe Reitman
Krystian, To extract the Title and Author from your API call you need: return render(request, 'books/api.html', { 'title': book['volumeInfo']['title'], 'authors': book['volumeInfo']['authors'][0] }) 'authors' is stored in an array(list) so if you want to pass all the

django tests - model instance not created

2019-05-09 Thread luca bocchi
I'm experiencing issues on creating fixtures for a particular model in a test class with Django and the DRF. I'm using model-mommy , but even creating a single instance just using the Django ORM for that model does not work: *from

Can not render dynamic changing string from views.py to template form page

2019-05-09 Thread Samaresh Singh
Hi All, I am working on internal django project where, i select the option from dropdown in the form page and pass that value to the views.py using AJAX. in views.py i use the text from dropdown and want to throw the text into same form pages text field but that does not work. When i try to

Re: reporting

2019-05-09 Thread Krystian
I think it depends on your needs but what I can recommend is to check on this website https://djangopackages.org/grids/g/reporting/ and make sure that the tool that you will use is compatible, python version and django are OK with yours and it's developed by community (dont touch old

How to use Django with python-requests to fetch data from google api?

2019-05-09 Thread Krystian
Hi there, I was trying today just for myself learning to get data from google books api https://www.googleapis.com/books/v1/volumes/ without needed auth key but the point is that I'm getting no results. I've tried with single book (like below), tried to get books that title contains

Re: form submission

2019-05-09 Thread Chetan Ganji
He sure does have it . https://www.youtube.com/watch?v=-oQvMHpKkms=PLEsfXFp6DpzTD1BD1aWNxS2Ep06vIkaeW=49 But in try django 1.8 he teaches the very basic stuff that everyone needs to know about django. I just wish I started with this project instead of others. As I only found one project that

reporting

2019-05-09 Thread Rob W
whats the best web reporting tool to use that easy and will easily integrate with django ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: form submission

2019-05-09 Thread Robert Wahoo
That’s for 1.8, does he have an updated set of videos for 2.x? From: "django-users@googlegroups.com" on behalf of Chetan Ganji Reply-To: "django-users@googlegroups.com" Date: Thursday, May 9, 2019 at 12:05 PM To: "django-users@googlegroups.com" Subject: Re: form submission Hi Ganesh, This

Re: form submission

2019-05-09 Thread Chetan Ganji
Hi Ganesh, This guy is total nerd. He teaches in a very easy to understand way ;-) https://www.youtube.com/watch?v=KsLHt3D_jsE=PLEsfXFp6DpzRcd-q4vR5qAgOZUuz8041S Start with Try Django 1.8. Cheers! Regards, Chetan Ganji +91-900-483-4183 ganji.che...@gmail.com http://ryucoder.in On Thu, May

Manage StreamingHttpResponse on different thread.

2019-05-09 Thread BadStorm
Hi everybody. I have my django project (under uwsgi+nginx) that have a fronted site and some http apis. By the api I send some (big) files using StreamingHttpResponse. I noticed that when there is a download running, the frontend never response (nginx return 504). When download finish all run

Re: form submission

2019-05-09 Thread Lutalo Bbosa joseph
please specify what type of forms. coz in django u can create forms in forms.py using the models, and then this can be invoked in html as {{ forrm }} so am not understanding what u want specifically On Thu, May 9, 2019 at 3:39 PM Ganesh Babu wrote: > Recently i was started Pyhon with Django.

Django users slack chanel

2019-05-09 Thread Maurice Aney
Hey everyone, Join slack Channel for better discussion. https ://join.slack.com/t/djangousersgroupe/shared_invite/enQtNjMyNzcxNDM4NTk4LTk3MGQ5NDQ2MDY5ZTc2OTQyMzViMjgwN2I4ZTJjOThmOGNjNmE1Y2FmZmI0NzY5MDhmODg5NzUzNDdmNTU3NjU

Django users slack chanel

2019-05-09 Thread Maurice Aney
hi every one join us for better discusion on slack https://join.slack.com/t/djangousersgroupe/shared_invite/enQtNjMyNzcxNDM4NTk4LTk3MGQ5NDQ2MDY5ZTc2OTQyMzViMjgwN2I4ZTJjOThmOGNjNmE1Y2FmZmI0NzY5MDhmODg5NzUzNDdmNTU3NjU -- You received this message because you are subscribed to the Google Groups

Join Slack channel!!!

2019-05-09 Thread MUHAMMAD AFZAL
Hey everyone, Join slack Channel for better discussion. https://join.slack.com/t/djangousersgroupe/shared_invite/ enQtNjMyNzcxNDM4NTk4LTk3MGQ5NDQ2MDY5ZTc2OTQyMzViMjgwN2I4ZTJj OThmOGNjNmE1Y2FmZmI0NzY5MDhmODg5NzUzNDdmNTU3NjU

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread chaitanya goud
Hi https://stackoverflow.com/questions/27440861/django-model-multiplechoice Use this link in models and create css in the frontend On Thu, 9 May 2019, 18:09 Maurice Aney, wrote: > hi guys i think that it will be great to create a slak chanel > > Le jeu. 9 mai 2019 à 08:03, Balaji Shetty a >

form submission

2019-05-09 Thread Ganesh Babu
Recently i was started Pyhon with Django. Installation has been succeeded in ubuntu and projects creation is also succeeded. Please help me, how to create form submission using pycharm -- You received this message because you are subscribed to the Google Groups "Django users" group. To

new Django users slack chanel

2019-05-09 Thread Maurice Aney
hi guys this is the link of the new slack chanel that i created for us https://join.slack.com/t/djangousersgroupe/shared_invite/enQtNjMwMDY5MTg5OTg4LTFjMjM5MDFmMzQ2YmY1ZjY5MzYwZDc0ZDMxN2ZlZTQyMzgyMzI4MzRmOTgxZGZjZDM2YzBmZTg4MWM0NGE3OTk -- You received this message because you are subscribed to

How to generate UserID and password for users upon registration?

2019-05-09 Thread MUHAMMAD AFZAL
Hello Django People, I'm building an app in which I need to generate UserID and passwords for users automatically up signing up to the app. And ID and password will be sent to email or phone number. I'm checking out for full solution in Django. Thanks Muhammad Afzal -- You received this

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Maurice Aney
hi guys i think that it will be great to create a slak chanel Le jeu. 9 mai 2019 à 08:03, Balaji Shetty a écrit : > > HI > > *How can I add cascading drop down for Continent and Country in Django > Admin Panel.* > > Here I add Continent and Country. > > When i change Continent, Country should

Re: reg: Django model sequense of the fields

2019-05-09 Thread Jani Tiainen
Hi. There is no correlation between field order in your model and order in database or database tools. They though accidentally be the same. ke 8. toukok. 2019 klo 18.52 'Amitesh Sahay' via Django users < django-users@googlegroups.com> kirjoitti: > Hello Users, > > I am seeing a very strange

Re: How to Create Program to get current temperature of computer cpu?

2019-05-09 Thread Jani Tiainen
Hi. This is not actually Django issue. I bet there are several libs that can do it. ke 8. toukok. 2019 klo 17.01 Mayur Bagul kirjoitti: > Hello community, > > i searched on google bout this and what i found was psutil is no longer > having check temperature attribute. > > im not getting how

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Balaji Shetty
Thanks a lot for your reply Dear Jani Tiainen I try it. On Thursday, May 9, 2019, Jani Tiainen wrote: > You could try django-select2 for example. > > to 9. toukok. 2019 klo 11.03 Balaji Shetty > kirjoitti: > >> >> HI >> >> *How can I add cascading drop down for Continent and Country in

Re: Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Jani Tiainen
You could try django-select2 for example. to 9. toukok. 2019 klo 11.03 Balaji Shetty kirjoitti: > > HI > > *How can I add cascading drop down for Continent and Country in Django > Admin Panel.* > > Here I add Continent and Country. > > When i change Continent, Country should be changed

Cascadind Drop Down in Django Admin Panel

2019-05-09 Thread Balaji Shetty
HI *How can I add cascading drop down for Continent and Country in Django Admin Panel.* Here I add Continent and Country. When i change Continent, Country should be changed automatically. How can i achieve this. Consider my model.py class Continent(models.Model): name =