Re: Django Chat Help

2019-04-26 Thread Amna Afifi
how I can real time in the chat ‫في الاثنين، 22 أبريل 2019 في 3:57 ص تمت كتابة ما يلي بواسطة ‪Ahmed Ishtiaque‬‏ <‪ahmedisht...@gmail.com‬‏>:‬ > Hello! > > Shameless plug: I've been working towards making a chat app for Django > developers to be able to use. You could check it out here >

Razorpay imtegration

2019-04-26 Thread Soumen Khatua
Hi folks, Anyone have the source code to integrate Razorpay along with full security,actually I saw their documentation but I'm still confused. If anyone have please share with me?? Thank You. Regards, Soumen -- You received this message because you are subscribed to the Google Groups "Django

RE: left join without where condition

2019-04-26 Thread Matthew Pava
Then use the reverse accessor: https://docs.djangoproject.com/en/dev/topics/db/queries/#following-relationships-backward Product.objects.select_related(‘photo_set’) {% for photo in product.photo_set.all %} {{ photo }} {% empty %} This product has no photos. {% endfor %} F

Re: left join without where condition

2019-04-26 Thread chirag soni
You are telling something which I know already. Please observe my question keenly I need reverse of what you told. I. e. Photo modal has Product as ForeignKey class Photo: file=models.FileField() product=models.ForeignKey() On 26 Apr 2019 19:16, "Matthew Pava" wrote: Use s

RE: How to Update Database

2019-04-26 Thread Matthew Pava
You would use the data from request.POST or request.GET. Here’s everything you need to know about views: https://docs.djangoproject.com/en/2.2/topics/http/views/ Here’s an example: def my_view(request): if request.POST: field1 = request.POST.get(‘field

Re: Autoreloader looping Django 2.2

2019-04-26 Thread Dan
Forgot to mention that this is on a mac osx host with ubuntu 16 virtualbox guest, I'm not sure that has something to do with it? On Thursday, April 25, 2019 at 10:06:59 PM UTC+2, Dan wrote: > > I'm using Django 2.2 on a new project and suddenly the autoreloader is > looping when I change a file

How to Update Database

2019-04-26 Thread Aayush Bhattarai
How can I update database. I am not using forms.py and I am using function based view. Can you how example and link for docs. Thanks for help. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving ema

RE: left join without where condition

2019-04-26 Thread Matthew Pava
Use select_related or just reference it in the template as an attribute. https://docs.djangoproject.com/en/2.1/ref/models/querysets/#select-related Product.objects.select_related(‘photo’) {% if product.photo %} … {% endif %} From: django-users@googlegroups.com [mailto:django-users@go

Like button for user pictures.

2019-04-26 Thread Malick Cisse
Hi, what have you tried? Help us help you -- 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+unsubscr...@googlegroups.com. To post to this group, send

left join without where condition

2019-04-26 Thread pythonwebdjango
What exactly I need? I have 2 models Product and Photo(having ForeignKey relationship with Product). Now suppose I inserted 3 products in Product table. For the 3rd product I not inserted any photo in Photo table. I want to fetch all the Products along with Photos but for the 3rd product photo

Re: Comment Form Related issue

2019-04-26 Thread Robin Riis
its pretty much the same, you can check on class based view where you have CreateView and UpdateView and so on and i would recomend to add the following to models.py: updated_at = models.DateTimeField(null=True) updated_by = models.ForeignKey(get_user_model(), on_delete=models.CASCADE, null=True)

Re: Comment Form Related issue

2019-04-26 Thread Soumen Khatua
Okay,Could you tell me If any user want to update their comment it later the process is same or different? Thank You On Fri, Apr 26, 2019 at 5:31 PM Robin Riis wrote: > class Comment(models.Model): <--- in models.py > > class CommentForm(forms.ModelForm): <--- in forms.py > > def CommentVideo(

Re: Comment Form Related issue

2019-04-26 Thread Robin Riis
class Comment(models.Model): <--- in models.py class CommentForm(forms.ModelForm): <--- in forms.py def CommentVideo(request, pk): <--- in views.py and the video is another model i used since you said like youtube. :) Den fre 26 apr. 2019 kl 13:33 skrev Soumen Khatua : > yes,I'm new to django

Re: Comment Form Related issue

2019-04-26 Thread Soumen Khatua
yes,I'm new to django so let me check once. Thank You for your response. On Fri, Apr 26, 2019 at 4:36 PM Robin Riis wrote: > class Comment(models.Model): > > message = models.TextField() > > video = models.ForeignKey(Video, related_name='comments', > on_delete=models.CASCADE) > > created_at = mo

How to add calls and biometric to your web app

2019-04-26 Thread MICHAEL EBEBE
Please has anyone try on how to add calls and biometric to his web app android version ??try but keep failing -- 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 dja

Re: Comment Form Related issue

2019-04-26 Thread Robin Riis
class Comment(models.Model): message = models.TextField() video = models.ForeignKey(Video, related_name='comments', on_delete=models.CASCADE) created_at = models.DateTimeField(auto_now_add=True) created_by = models.ForeignKey(get_user_model(), related_name='comments', on_delete=models.CASCADE)

Comment Form

2019-04-26 Thread Soumen Khatua
Hi Folks, I want to allow for those who are logged in if they are not logged then it will redirect to login page. if any one have any code related to this concept please share with me. For better clarity please go through this link- https://www.amazon.in/Megaliving-Monk-Who-Sold-Ferrari/dp/81722461

Comment Form Related issue

2019-04-26 Thread Soumen Khatua
Hi Folks, I want to show one textarea where only logged in users can comment otherwise if they are click the textareabox redirect them to login page just like youutbe comnet box. If anyone have any source code related to this please share. Thank You. Regards, Soumen -- You received this messag

razopay payment gateway isssues

2019-04-26 Thread ANIL UMARANE
I am using django python i have uploaded your html file but not ope error is the id provided does notexists https://checkout.razorpay.com/v1/checkout-new.js"; data-key="" data-amount="59900" data-order_id="123456" data-currency="INR" data-buttontext="Pay with Razorpay"