Re: How to resize image when uploading to the cloudinary?

2020-09-30 Thread dum dum
Guys, do you know how to resize image pillow in django when uploading to aws s3? I got error when trying to. even though the image has been changed, but the error showed up. I followed this solution but didn't work. https://jawaban.online/scope/outlink/21234/python-pillow-resizing-images-thumbnail

Re: How to get logged in user location and save it in database

2020-09-30 Thread RANGA BHARATH JINKA
I think you can find out city name using IP address. Use JavaScript or there are some python modules also. All the best 👍 On Thu, 1 Oct 2020, 11:34 am Ram, wrote: > Thank you very much, Ranga for the pointer. We actually need to capture > the location of the IP address, like "Where" attribute in

Re: How to get logged in user location and save it in database

2020-09-30 Thread Ram
Thank you very much, Ranga for the pointer. We actually need to capture the location of the IP address, like "Where" attribute in this example. So where attribute should also include nearest city name in that country. [image: image.png] Best Regards, ~Ram On Wed, Sep 30, 2020 at 10:36 PM RANGA

Django bugfix release: 3.1.2

2020-09-30 Thread Mariusz Felisiak
Details are available on the Django project weblog: https://www.djangoproject.com/weblog/2020/oct/01/django-bugfix-release-312/ -- 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, se

Re: How to get logged in user location and save it in database

2020-09-30 Thread RANGA BHARATH JINKA
Hi, Use javascript location api https://www.w3schools.com/html/html5_geolocation.asp All the best On Thu, Oct 1, 2020 at 9:59 AM Ram wrote: > Hi All, > > I'm looking for a way to capture location of logged in users in our Web > App and save that location into our database. > > Basical

How to get logged in user location and save it in database

2020-09-30 Thread Ram
Hi All, I'm looking for a way to capture location of logged in users in our Web App and save that location into our database. Basically if we could capture this location, we would like to use it around members account features. Please let me know if you have suitable pointers for this. Thanks i

Re: Send csrf token and retrieve with javascript?

2020-09-30 Thread RANGA BHARATH JINKA
Hi, Check the docs link. This will be useful. All the best https://docs.djangoproject.com/en/3.1/ref/csrf/ On Thu, Oct 1, 2020 at 5:10 AM Alexandro Gonçalves Dos Santos < alexandrogon...@gmail.com> wrote: > I am building a django api to be used in a front end of another server, > how do I s

Re: How to resize image when uploading to the cloudinary?

2020-09-30 Thread RANGA BHARATH JINKA
https://youtu.be/inQyZ7zFMHM Check this out. All the best 👍😁 On Thu, 1 Oct 2020, 5:10 am abhay santra, wrote: > Thank you man... > have you worked with Amazon s3 in django? > > On Wednesday, September 30, 2020, RANGA BHARATH JINKA < > bharathjink...@gmail.com> wrote: > >> Hi, >> >> I saw a

Send csrf token and retrieve with javascript?

2020-09-30 Thread Alexandro Gonçalves Dos Santos
I am building a django api to be used in a front end of another server, how do I send the csrf token and how do I retrieve it in the front end with javascript? Currently my posts.py file looks like this: ```python from django.http import HttpResponse from django.views.decorators.csrf import ensu

How to consume DJango Rest Api with DJango?

2020-09-30 Thread Stalin Vladimir Gomez Gutierrez
I am trying to consume a django api with django itself. Should I use class generic views or normal views. Do you know what is the best approach? Right now, to list items I am using TemplateView class RegionListView(TemplateView): template_name = 'region/list.html' def get(self,request)

[API] Send csrf token and retrieve with javascript?

2020-09-30 Thread Alexandro Gonçalves Dos Santos
I am building a django api to be used in a front end of another server, how do I send the csrf token and how do I retrieve it in the front end with javascript? Currently my posts.py file looks like this: ```python from django.http import HttpResponse from django.views.decorators.csrf import ensu

Re: How to resize image when uploading to the cloudinary?

2020-09-30 Thread abhay santra
Thank you man... have you worked with Amazon s3 in django? On Wednesday, September 30, 2020, RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > > I saw a video to upload images to cloudinary. Check it out. > >https://youtu.be/1T6G7Znrbfg > > > On Tue, Sep 29, 2020 at 7:12 PM a

Re: Add user to Group after purchase

2020-09-30 Thread King Niko
Thanks Derek! I tried using the signals but it is not working. This is how my signals and models looks: Signals.py: from django.contrib.auth.models import User from .models import * from django.db.models.signals import post_save from django.dispatch import receiver from django.contrib.auth.models

Re: Members rating system in DJango applications

2020-09-30 Thread Ram
Hi Gabriel, Thank you and we will give it a try. Best Regards, ~Ram On Sun, Sep 20, 2020 at 9:08 PM Gabriel Araya Garcia < gabrielaraya2...@gmail.com> wrote: > You could try it with pandas (pandas works with python) > > Gabriel Araya Garcia > GMI - Desarrollo de Sistemas Informáticos > > > > >

Email or Messaging Module in DJango

2020-09-30 Thread Ram
Hi, We are looking for Emailing and Messaging modules with the following features 1. Just like any other email interface, we need to have Inbox, Sent and Trash 2. Members of the site exchange messages on the Ads that they post I'm wondering if anyone used an opensource project or Django FWK has