Wednesday, September 30, 2020

python/django support

guys, I need support for my django application. Here is my requirement

python 3.x/django2.x/django channels/web sockets/rest api/daphne /oracle db/java script

if anybody can help, I can pay decent money in indian rupees. 

thank you
subba. 

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/60d6813f-d2f3-4bc8-a940-7453f9de8879n%40googlegroups.com.

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

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.

Please advise, Thanks

On Thu, Oct 1, 2020 at 9:17 AM RANGA BHARATH JINKA <bharathjinka09@gmail.com> wrote:
https://youtu.be/inQyZ7zFMHM

Check this out. All the best 👍😁

On Thu, 1 Oct 2020, 5:10 am abhay santra, <abhay.santra@gmail.com> wrote:
Thank you man...
have you worked with Amazon s3 in django?

On Wednesday, September 30, 2020, RANGA BHARATH JINKA <bharathjinka09@gmail.com> wrote:
Hi,

    I saw a video to upload images to cloudinary. Check it out. 



On Tue, Sep 29, 2020 at 7:12 PM abhay santra <abhay.santra@gmail.com> wrote:
Thank you everyone...

On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup wrote:
Hi Abbay,

On 25/09/2020 16.21, abhay santra wrote:
>
> Hi,
> I would like to know how to resize any image when uploading to the
> cloudinary in django?
>

You use Pillow:

https://pillow.readthedocs.io/en/stable/

It's hard for anyone to give you a better answer until you try to write
a better question.

Kind regards,

Kasper Laudrup

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/0xfYS71IurM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BmzYVvGxpmGihZcn7Fqt-ULAtibGYF3pbUvpK9JyqAhpX%2BfBA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m3157Tj6ZxuozDGExf06Cwu-YP4_U-uaS4VCrUnkpEq2THA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CANV3w%3DZeXqgGXupr6DSt5-aE%3DSydVPHi_F%3DQfrpDZ7MS3--dXw%40mail.gmail.com.

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

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, <ram.mullapudi@gmail.com> wrote:
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.




Best Regards,
~Ram

On Wed, Sep 30, 2020 at 10:36 PM RANGA BHARATH JINKA <bharathjinka09@gmail.com> wrote:
Hi, 

   Use javascript location api

   All the best

On Thu, Oct 1, 2020 at 9:59 AM Ram <ram.mullapudi@gmail.com> 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.

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 in advance,
~Ram

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m315QeHRHpv0kbg4OefdGUSDmNgSp7KbmsLEswVWPGNqd4g%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F1p-uCrkEVCobuB%3DE8srydue1Fp-H_%2BFv8W8gRkPiwhTA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316QhbiWzXA3NvOt6981ohFrcdNJiBu%2BCyFL4rm4zzkRig%40mail.gmail.com.

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

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.




Best Regards,
~Ram

On Wed, Sep 30, 2020 at 10:36 PM RANGA BHARATH JINKA <bharathjinka09@gmail.com> wrote:
Hi, 

   Use javascript location api

   All the best

On Thu, Oct 1, 2020 at 9:59 AM Ram <ram.mullapudi@gmail.com> 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.

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 in advance,
~Ram

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m315QeHRHpv0kbg4OefdGUSDmNgSp7KbmsLEswVWPGNqd4g%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F1p-uCrkEVCobuB%3DE8srydue1Fp-H_%2BFv8W8gRkPiwhTA%40mail.gmail.com.

Django bugfix release: 3.1.2

Details are available on the Django project weblog:

https://www.djangoproject.com/weblog/2020/oct/01/django-bugfix-release-312/

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

Hi, 

   Use javascript location api

   All the best

On Thu, Oct 1, 2020 at 9:59 AM Ram <ram.mullapudi@gmail.com> 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.

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 in advance,
~Ram

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m315QeHRHpv0kbg4OefdGUSDmNgSp7KbmsLEswVWPGNqd4g%40mail.gmail.com.

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

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 in advance,
~Ram

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F1T1X_Q-GGSqKp4f-fRhY4qfu8Y12-XcNUGcEmUSGQ9AA%40mail.gmail.com.

Re: Send csrf token and retrieve with javascript?

Hi,

   Check the docs link. This will be useful. All the best

On Thu, Oct 1, 2020 at 5:10 AM Alexandro Gonçalves Dos Santos <alexandrogonsan@gmail.com> wrote:
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 ensure_csrf_cookie

@ensure_csrf_cookie
def index(request):
return HttpResponse('ok')
```

And the header that the javascript receives when making the request is:
```
content-length: 2
content-type: text/html; charset=utf-8
date: Wed, 30 Sep 2020 22:37:40 GMT
server: WSGIServer/0.2 CPython/3.7.3
vary: Cookie
x-content-type-options: nosniff
x-frame-options: DENY
```

Thank you so much for your help.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fd412572-d35c-460e-934f-6fb684d1c0c9n%40googlegroups.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316v0c_cZ7E%3DKEWDieJ-f1N2bsUoB57r%3DuafAFWKdhodPg%40mail.gmail.com.

Looking for mentors for Google Summer of Code


I am looking for mentors who can train me to so that I am able to be a part of this esteemed organization in the next year's Google Summer of Code.
I have a strong passion for Django and have projects on GitHub too.
But I need help so that I am fully aware about this community.
Is there someone who can help me out in this journey?

Thank You
Asjad Ahmed Khan

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/230a6403-cacb-4c9d-b25b-503e768cb905n%40googlegroups.com.

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

https://youtu.be/inQyZ7zFMHM

Check this out. All the best 👍😁

On Thu, 1 Oct 2020, 5:10 am abhay santra, <abhay.santra@gmail.com> wrote:
Thank you man...
have you worked with Amazon s3 in django?

On Wednesday, September 30, 2020, RANGA BHARATH JINKA <bharathjinka09@gmail.com> wrote:
Hi,

    I saw a video to upload images to cloudinary. Check it out. 



On Tue, Sep 29, 2020 at 7:12 PM abhay santra <abhay.santra@gmail.com> wrote:
Thank you everyone...

On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup wrote:
Hi Abbay,

On 25/09/2020 16.21, abhay santra wrote:
>
> Hi,
> I would like to know how to resize any image when uploading to the
> cloudinary in django?
>

You use Pillow:

https://pillow.readthedocs.io/en/stable/

It's hard for anyone to give you a better answer until you try to write
a better question.

Kind regards,

Kasper Laudrup

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/0xfYS71IurM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BmzYVvGxpmGihZcn7Fqt-ULAtibGYF3pbUvpK9JyqAhpX%2BfBA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m3157Tj6ZxuozDGExf06Cwu-YP4_U-uaS4VCrUnkpEq2THA%40mail.gmail.com.

Re: Recruitment

I am interested sir.

On Wed, Sep 23, 2020 at 8:25 PM Harish Thiyagharajan <harishthiyaghu15@gmail.com> wrote:
I want a interested django user , DM mail for more details , all the details including payment can be discussed ...looking for for you guys .

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7b7956bc-d239-4b63-9194-0644b8a6eeben%40googlegroups.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMBuiEPY-HEwqOx41Y4KNrLT6BzTdEPjvgQhEGzTdAEf-_HG1g%40mail.gmail.com.

Send csrf token and retrieve with javascript?

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 ensure_csrf_cookie

@ensure_csrf_cookie
def index(request):
return HttpResponse('ok')
```

And the header that the javascript receives when making the request is:
```
content-length: 2
content-type: text/html; charset=utf-8
date: Wed, 30 Sep 2020 22:37:40 GMT
server: WSGIServer/0.2 CPython/3.7.3
vary: Cookie
x-content-type-options: nosniff
x-frame-options: DENY
```

Thank you so much for your help.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/fd412572-d35c-460e-934f-6fb684d1c0c9n%40googlegroups.com.

[API] Send csrf token and retrieve with javascript?

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 ensure_csrf_cookie

@ensure_csrf_cookie
def index(request):
return HttpResponse('ok')
```

The header I get when accessing the route is:
```
content-length: 2
content-type: text/html; charset=utf-8
date: Wed, 30 Sep 2020 22:37:40 GMT
server: WSGIServer/0.2 CPython/3.7.3
vary: Cookie
x-content-type-options: nosniff
x-frame-options: DENY
```

Thanks for the help.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/93facb86-270a-432d-98cd-babce056f421n%40googlegroups.com.

Re: Add user to Group after purchase

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 import Group 




@receiver(post_save, sender=User)
def subscription_group(senderinstancecreated, **kwargs):

        if OrderItem.product == 'Subscription_Product':
                Order.complete == True
                group = Group.objects.get(name='subscribees')
                User.groups.add(group)
                print('New Subscribee Added')


Models.py:
from django.db import models
from django.contrib.auth.models import User

# Create your models here.

        
class Customer(models.Model):
    user = models.OneToOneField(User, null=Trueblank=Trueon_delete=models.CASCADE )
    name = models.CharField(max_length=200null=True)
    email = models.CharField(max_length=200null=True)
    phone = models.CharField(max_length=200null=True)
    profile_pic = models.ImageField(default="chicken_suit.gif" ,null=Trueblank=True)
    data_created = models.DateTimeField(auto_now_add=Truenull=True)

    @property
    def picURL(self):
                    try:
                            url = self.profile_pic.url
                    except
                            url= ''
                    return url

    def __str__(self):
        return self.name

class Product(models.Model):
        name = models.CharField(max_length=200)
        price = models.FloatField()
        digital = models.BooleanField(default=Falsenull=Trueblank=True)
        image = models.ImageField(null=Trueblank=True)
        view = models.URLField(default=Falsenull=Trueblank=True)
        

        def __str__(self):
                return self.name
        @property
        def imageURL(self):
                    try:
                            url = self.image.url
                    except
                            url= ''
                    return url

class Order(models.Model):
    customer = models.ForeignKey(Customer, on_delete=models.SET_NULL, null=Trueblank=True)
    date_ordered = models.DateTimeField(auto_now_add=True)
    complete = models.BooleanField(default=False)
    transaction_id = models.CharField(max_length=100null=True)

    def __str__(self):
        return str(self.id)

    @property 
    def get_cart_total(self):
        orderitems = self.orderitem_set.all()
        total = sum([item.get_total for item in orderitems])
        return total
    
    @property
    def get_cart_items(self):
        orderitems = self.orderitem_set.all()
        total = sum([item.quantity for item in orderitems])
        return total

    @property
    def shipping(self):
        shipping= False
        orderitems = self.orderitem_set.all()
        for i in orderitems:
            if i.product.digital == False:
                    shipping = True
        return shipping

class OrderItem(models.Model):
    product = models.ForeignKey(Product, on_delete=models.SET_NULL, null=True)
    order = models.ForeignKey(Order, on_delete=models.SET_NULL, null=True)
    quantity = models.IntegerField(default=0null=Trueblank=True)
    date_added = models.DateTimeField(auto_now_add=True)
    VALUE_ADDED_TAX = 6.0
    tax= VALUE_ADDED_TAX/100
    

    @property
    def get_total(self):
            total = self.product.price * self.quantity + (self.tax * self.product.price)
            return total


When an individual purchases, the signal is not received and that individual is not added to the "subscribees" group. 

Any further suggestions?

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO1EWpGqeVVWdrZ4TCAA5cnRT2_E%2BOiLZr2bvR7Ni_CUsEZC8g%40mail.gmail.com.

Re: Members rating system in DJango applications

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 <gabrielaraya2011@gmail.com> wrote:
You could try it with pandas (pandas works with python)

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El dom., 20 sept. 2020 a las 23:27, Ram (<ram.mullapudi@gmail.com>) escribió:
Hi,
We are planning to implement members rating system in our web application for Classifieds Ad transaction that each member does. Is there any an existing project or feature available by default in DJango FWK?

I appreciate for suitable pointers and suggestions here.

Best regards,
~Ram

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F0E3uTzk7_6S1kXq3gHpEHo1Dmpx_koFnzAQ6%3D%3DSmr0Cw%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKVvSDDnYhUA5U1zG9%2B2ChP8DKjqVSCd-xjDYvO_Zi0KDp6gmA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F2PJecv2r1M%3DwTp_w0d6SAN2x4GwTyr2bsVA0AQTWEb6A%40mail.gmail.com.

Email or Messaging Module in DJango

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 a module by default?

I would appreciate if you can share suitable pointers.

Thanks in advance,
~Ram

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BOi5F3dj2u%2B%3DWUj0Kar-Fm9d%3DVDGhYv%2BU8rOurNcUtC9nrPcg%40mail.gmail.com.

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

Thank you man...
have you worked with Amazon s3 in django?

On Wednesday, September 30, 2020, RANGA BHARATH JINKA <bharathjinka09@gmail.com> wrote:
Hi,

    I saw a video to upload images to cloudinary. Check it out. 



On Tue, Sep 29, 2020 at 7:12 PM abhay santra <abhay.santra@gmail.com> wrote:
Thank you everyone...

On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup wrote:
Hi Abbay,

On 25/09/2020 16.21, abhay santra wrote:
>
> Hi,
> I would like to know how to resize any image when uploading to the
> cloudinary in django?
>

You use Pillow:

https://pillow.readthedocs.io/en/stable/

It's hard for anyone to give you a better answer until you try to write
a better question.

Kind regards,

Kasper Laudrup

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/0xfYS71IurM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2BmzYVvGxpmGihZcn7Fqt-ULAtibGYF3pbUvpK9JyqAhpX%2BfBA%40mail.gmail.com.

Tuesday, September 29, 2020

Re: Add user to Group after purchase

You need to use a "post save" signal; see:
On Tuesday, 29 September 2020 at 06:23:19 UTC+2 Lightning Bit wrote:
Hi All, 

How would one add a user to a certain Backend group in the Django Administration after a user purchases a particular item? I have played around with tons of techniques but nothing is working. 

Thanks!

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/617d821c-adf7-464f-89ee-2985f089ce0fn%40googlegroups.com.

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

Hi,

    I saw a video to upload images to cloudinary. Check it out. 



On Tue, Sep 29, 2020 at 7:12 PM abhay santra <abhay.santra@gmail.com> wrote:
Thank you everyone...

On Friday, September 25, 2020 at 9:53:32 PM UTC+5:30 Kasper Laudrup wrote:
Hi Abbay,

On 25/09/2020 16.21, abhay santra wrote:
>
> Hi,
> I would like to know how to resize any image when uploading to the
> cloudinary in django?
>

You use Pillow:

https://pillow.readthedocs.io/en/stable/

It's hard for anyone to give you a better answer until you try to write
a better question.

Kind regards,

Kasper Laudrup

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c0621b57-4f50-409e-8267-7f48aa7f4148n%40googlegroups.com.


--
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316rFiQatVEVeMAhtEtmG0mTE1Z4rC3Rkkei32Y6G%2B6iHA%40mail.gmail.com.

Re: could you help me to solve this problem? ☹☹

What are you trying to achieve?
If you intend to start the django server , used the above proposed step by the previous guy:
 try python manage.py runserver  and not django-admin runserver while your virtual environment is activated and also you are in the django root directory
AJAYI Sunday 
(+234) 806 771 5394



On Tue, Sep 29, 2020 at 11:53 PM coolguy <cooldjangoprogrammer@gmail.com> wrote:
It seems you haven't changed your python interpreter...based on the screen shot the python is being executed from main python directory instead of virtual environment.

On Tuesday, September 29, 2020 at 9:42:30 AM UTC-4 farisch...@student.president.ac.id wrote:
Screenshot 2020-09-28 12.36.13.png

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/525ba3d8-5940-48c9-b656-c2be5b3fa559n%40googlegroups.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKYSAw2qZePsUMtqfG2E4VdriBQo2wRUsY-nAFnJcsYjcJiEbA%40mail.gmail.com.

Re: could you help me to solve this problem? ☹☹

Please share the project directories... Need to see if you opened the main project and application correctly.

On Tuesday, September 29, 2020 at 9:42:30 AM UTC-4 farisch...@student.president.ac.id wrote:
Screenshot 2020-09-28 12.36.13.png

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/40023cda-06ee-478a-a5cd-fdf26bfb123bn%40googlegroups.com.

Re: could you help me to solve this problem? ☹☹

It seems you haven't changed your python interpreter...based on the screen shot the python is being executed from main python directory instead of virtual environment.

On Tuesday, September 29, 2020 at 9:42:30 AM UTC-4 farisch...@student.president.ac.id wrote:
Screenshot 2020-09-28 12.36.13.png

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/525ba3d8-5940-48c9-b656-c2be5b3fa559n%40googlegroups.com.

Re: Regarding OTP based login- Django

Gabriel 
one-time password

On Tue, Sep 29, 2020 at 12:34 PM Gabriel Araya Garcia <gabrielaraya2011@gmail.com> wrote:
Que es eso de OTP?,...que significan esas siglas ?

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El vie., 25 sept. 2020 a las 10:55, Rahul Gour (<rahul.gour25@gmail.com>) escribió:
Hello,

TIA.

I am new in django, can anyone help me for OTP based login in my app.

I am working on a ecommerce app and want to login otp based login and dont know or getting much on google that how to integrate phone number with django user model or want to use custom user model.


Regards,
Rahul Gour

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFi6BNX1qfhDF1zqY7xt4aD%2B7F7mgNXmApxZ%2BquigQYxSgsinw%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKVvSDCPEc%2BWqDD4Yk2o9_o9_F9uFT_8TpmheiVMJ_3O%3DTNuPw%40mail.gmail.com.


--
att.
Carlos Rocha

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAM-7rO3eAK1gOAm5KFOxG9F%3DXxgBt9kmW5zd0DVTNzxXV4PjSg%40mail.gmail.com.

Re: Regarding OTP based login- Django

Que es eso de OTP?,...que significan esas siglas ?

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El vie., 25 sept. 2020 a las 10:55, Rahul Gour (<rahul.gour25@gmail.com>) escribió:
Hello,

TIA.

I am new in django, can anyone help me for OTP based login in my app.

I am working on a ecommerce app and want to login otp based login and dont know or getting much on google that how to integrate phone number with django user model or want to use custom user model.


Regards,
Rahul Gour

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFi6BNX1qfhDF1zqY7xt4aD%2B7F7mgNXmApxZ%2BquigQYxSgsinw%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKVvSDCPEc%2BWqDD4Yk2o9_o9_F9uFT_8TpmheiVMJ_3O%3DTNuPw%40mail.gmail.com.

How to consume DJango Rest Api with DJango?

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):
        r = requests.get('http://127.0.0.1:8081/regions')
        regions = r.json()
        region_list = {'regions':regions}
        return render(request, self.template_name, region_list)

I need help to implement create and update views to use my api methods. Do you guys have any idea? 

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/03abb212-8408-4fd7-8c5f-b78e9402bf38n%40googlegroups.com.

Re: Regarding OTP based login- Django

Hope this helps https://github.com/django-otp/django-otp

regards
Kannan

On Fri, Sep 25, 2020 at 9:56 AM Rahul Gour <rahul.gour25@gmail.com> wrote:
Hello,

TIA.

I am new in django, can anyone help me for OTP based login in my app.

I am working on a ecommerce app and want to login otp based login and dont know or getting much on google that how to integrate phone number with django user model or want to use custom user model.


Regards,
Rahul Gour

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFi6BNX1qfhDF1zqY7xt4aD%2B7F7mgNXmApxZ%2BquigQYxSgsinw%40mail.gmail.com.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADiZb_czAa%3DwJDQdRhyxWn8tzOZtPDoxiN_GNa0-yCC02Sa6Hg%40mail.gmail.com.

RE: could you help me to solve this problem? ☹��

Still error

 

Sent from Mail for Windows 10

 

From: Akinfolarin Stephen
Sent: 29 September 2020 22:18
To: django-users@googlegroups.com
Subject: Re: could you help me to solve this problem? ☹☹

 

Set your debug to false and tryit again

 

On Tue, Sep 29, 2020, 16:13 FARISKA <farischa.makay@student.president.ac.id> wrote:

"""

Django settings for library project.

 

Generated by 'django-admin startproject' using Django 3.1.1.

 

For more information on this file, see

 

For the full list of settings and their values, see

"""

 

from pathlib import Path

 

# Build paths inside the project like this: BASE_DIR / 'subdir'.

BASE_DIR = Path(__file__).resolve().parent.parent

 

# Quick-start development settings - unsuitable for production

 

# SECURITY WARNING: keep the secret key used in production secret!

SECRET_KEY = 'st&^2y1*#&=e=#o77rv(#fr7$swcue#tvfp8lunvpm0w67ap^k'

 

# SECURITY WARNING: don't run with debug turned on in production!

DEBUG = True

 

ALLOWED_HOSTS = [

    

 

]

 

# Application definition

 

INSTALLED_APPS = [

    'catalog',

    'django.contrib.admin',

    'django.contrib.auth',

    'django.contrib.contenttypes',

    'django.contrib.sessions',

    'django.contrib.messages',

    'django.contrib.staticfiles',

    'support.apps.SupportConfig',

]

 

MIDDLEWARE = [

    'django.middleware.security.SecurityMiddleware',

    'django.contrib.sessions.middleware.SessionMiddleware',

    'django.middleware.common.CommonMiddleware',

    'django.middleware.csrf.CsrfViewMiddleware',

    'django.contrib.auth.middleware.AuthenticationMiddleware',

    'django.contrib.messages.middleware.MessageMiddleware',

    'django.middleware.clickjacking.XFrameOptionsMiddleware',

]

 

ROOT_URLCONF = 'library.urls'

 

TEMPLATES = [

    {

        'BACKEND''django.template.backends.django.DjangoTemplates',

        'DIRS': [],

        'APP_DIRS'True,

        'OPTIONS': {

            'context_processors': [

                'django.template.context_processors.debug',

                'django.template.context_processors.request',

                'django.contrib.auth.context_processors.auth',

                'django.contrib.messages.context_processors.messages',

            ],

        },

    },

]

 

WSGI_APPLICATION = 'library.wsgi.application'

 

# Database

 

DATABASES = {

    'default': {

        'ENGINE''django.db.backends.sqlite3',

        'NAME': BASE_DIR / 'db.sqlite3',

    }

}

 

# Password validation

 

AUTH_PASSWORD_VALIDATORS = [

    {

        'NAME''django.contrib.auth.password_validation.UserAttributeSimilarityValidator',

    },

    {

        'NAME''django.contrib.auth.password_validation.MinimumLengthValidator',

    },

    {

        'NAME''django.contrib.auth.password_validation.CommonPasswordValidator',

    },

    {

        'NAME''django.contrib.auth.password_validation.NumericPasswordValidator',

    },

]

 

# Internationalization

 

LANGUAGE_CODE = 'en-us'

 

TIME_ZONE = 'UTC'

 

USE_I18N = True

 

USE_L10N = True

 

USE_TZ = True

 

# Static files (CSS, JavaScript, Images)

 

STATIC_URL = '/static/'

 

 

 

Sent from Mail for Windows 10

 

From: Akinfolarin Stephen
Sent: 29 September 2020 22:04
To: django-users@googlegroups.com
Subject: Re: could you help me to solve this problem? ☹☹

 

Let me have the screenshot of your django settings that is where the issue his

 

On Tue, Sep 29, 2020, 16:00 FARISKA <farischa.makay@student.president.ac.id> wrote:

Already but still I got message like this

 

Sent from Mail for Windows 10

 

From: RANGA BHARATH JINKA
Sent: 29 September 2020 20:48
To: django-users@googlegroups.com
Subject: Re: could you help me to solve this problem? ☹☹

 

Hi,

 

   Try python manage.py runserver

 

On Tue, Sep 29, 2020 at 7:12 PM FARISCHA MAKAY <farischa.makay@student.president.ac.id> wrote:

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e9ad149c-428b-44df-97b1-f9d67d689e3dn%40googlegroups.com.


 

--

Thanks and Regards

 

J. Ranga Bharath

cell: 9110334114

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAK5m316pAxhD4%2Bmrw3arA2jizf%2Bq%2B9f0%3Dhh_Lb-t4dzqQB-D3w%40mail.gmail.com.

 

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/F0C3E8F2-ECD6-4416-99EF-50A695DA99B3%40hxcore.ol.

--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/hn9-MeHE3yQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFujGLy0z0J38XkBZtpS6kQwimz8Pkgf9aj86VBxp3pm%2BVfbqw%40mail.gmail.com.

 

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/A0984A28-945F-422E-B212-BB251C9A6A8F%40hxcore.ol.

--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFujGLxRyazZVc1%2BB8S835CN4okH7AhrffhHx%2BznE_k89Lye_Q%40mail.gmail.com.