How to embed logo on uploaded images

2021-04-18 Thread Ram
Hi, Registered users in web application upload images to sell market place items and we need to add our company logo to pretect from stealing against copy right. Is there any library availlable in Python to handle this feature. Best regards, ~Ram -- You received this message because you are

Re: image processing

2021-04-18 Thread Aniket Gadge
Still not get it On Fri, Apr 16, 2021, 5:30 PM Aniket Gadge wrote: > Thanks , > but i want form data which is in the image format and ocr library is > not capable of giving me any perticular data it gives me all the test which > is on the image and as well it also not gives me correct image

Re: User filling form in login session if user logout and login again data of form not to lose.

2021-04-18 Thread Salima Begum
Hi sir. Thanks for the response but I did not get this. Can you please send me any example resource On Mon, Apr 19, 2021 at 11:20 AM boyuanl...@gmail.com wrote: > You can do that by calling an endpoint in JavaScript. So when the field's > been changed, automatically called the endpoint in Djang

Re: User filling form in login session if user logout and login again data of form not to lose.

2021-04-18 Thread boyuanl...@gmail.com
You can do that by calling an endpoint in JavaScript. So when the field's been changed, automatically called the endpoint in Django and store it into the database. When a user's logged back in, just render the existing data if there's any. On Sunday, April 18, 2021, 10:09:29 PM PDT, Salima

User filling form in login session if user logout and login again data of form not to lose.

2021-04-18 Thread Salima Begum
Hi all, Here we are trying. While user enters a value in form input fields the value should not clear if user logout the session and navigate from one page to other. After filling the form in django if user fills some form fields and suddenly user logout and if user login again then it should sav

Testing Django User Login Form

2021-04-18 Thread lone...@gmail.com
Hello all, I am not sure what I am doing incorrectly with the below test case information. I am simply trying to test the default authentication form of django 3.1. This test should be a good/True login test. Here is the Test case:- class TestForms(TestCase): def test_

Re: Django Offline

2021-04-18 Thread Ryan Nowakowski
Typically JavaScript is treated as a static file: https://docs.djangoproject.com/en/3.2/howto/static-files/ On April 18, 2021 11:25:53 AM CDT, Abid Mohamed Nadhir wrote: >Hello, I'm trying to implement a django project with service worker, >i'm >wondering where to put my service worker? >Thank

Django Offline

2021-04-18 Thread Abid Mohamed Nadhir
Hello, I'm trying to implement a django project with service worker, i'm wondering where to put my service worker? 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

Re: how to manage static files after Debug = False

2021-04-18 Thread Kasper Laudrup
On 18/04/2021 15.12, Raj Kumar wrote: > I have problem after debug off, i am unable to handle static files > when i was doing debug off , i tried WhiteNoise but i can't able to > done this. if anyone have solution please help me > This looks pretty straightforward: https://devcenter.heroku.com/a

Re: Mixin add field to fields in forms

2021-04-18 Thread Shaheed Haque
Actually, looking again at the source, it might be generally belter to use self.base_fields. (Yes, my previous answer is not an exact copy of my code, so I got it wrong). On Sun, 18 Apr 2021 at 17:16, Shaheed Haque wrote: > > > On Sun, 18 Apr 2021 at 14:38, sebasti...@gmail.com < > sebastian.ju.

Re: Mixin add field to fields in forms

2021-04-18 Thread Shaheed Haque
On Sun, 18 Apr 2021 at 14:38, sebasti...@gmail.com < sebastian.ju...@gmail.com> wrote: > Hello, > > Thanks for your fast response. But i don't know how i can > use self.declared_fields and why this would help me... > The "how" is easy. Here is a fragment from my code where the problem is that ev

Django Channels and Google Cloud Run Redis

2021-04-18 Thread 'Helmy Sayed' via Django users
Dears, Can someone please help me deploy Django Channels with Google Cloud Run? Thanks in advance, Regards. -- 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

how to manage static files after Debug = False

2021-04-18 Thread Raj Kumar
I have problem after debug off, i am unable to handle static files when i was doing debug off , i tried WhiteNoise but i can't able to done this. if anyone have solution please help me Thank you guys -- You received this message because you are subscribed to the Google Groups "Django users"

Django Channels and Google Cloud Run

2021-04-18 Thread 'Helmy Sayed' via Django users
Dears,    Can you please help me with Channels on Cloud Run? Regards, Helmy -- 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...@googlegr

Re: AttributeError: module 'polls.views' has no attribute 'index'

2021-04-18 Thread Avi Mehenwal
I followed the same tutorial on 17th April 2021 with Python 3.9.2 and Django 3.2 and have exactly the same problems as mentioned above. path('', views.index, name='index'), AttributeError: module 'polls.views' has no attribute 'index' any help on how can I debug this? I am a django noob

Re: NGINX AND DJANGO DEPLOYMENT ISSUE

2021-04-18 Thread Kasper Laudrup
On 18/04/2021 16.51, Sunday Iyanu Ajayi wrote: > Hi Team > > Please I am having serious issue with my nginx server. > > At midnight when the traffic on the server is at it peak, my server > spikes and I get 502 error and from the nginx error log, I get : > > upstream prematurely closed connectio

NGINX AND DJANGO DEPLOYMENT ISSUE

2021-04-18 Thread Sunday Iyanu Ajayi
Hi Team Please I am having serious issue with my nginx server. At midnight when the traffic on the server is at it peak, my server spikes and I get 502 error and from the nginx error log, I get : upstream prematurely closed connection while reading response header from upstream upstream timed o

Re: Mixin add field to fields in forms

2021-04-18 Thread sebasti...@gmail.com
Hello, Thanks for your fast response. But i don't know how i can use self.declared_fields and why this would help me... Regards shahee...@gmail.com schrieb am Sonntag, 18. April 2021 um 15:14:03 UTC+2: > Try updating self.declared_fields instead. > > On Sun, 18 Apr 2021, 13:47 sebasti...@gma

Re: Mixin add field to fields in forms

2021-04-18 Thread Shaheed Haque
Try updating self.declared_fields instead. On Sun, 18 Apr 2021, 13:47 sebasti...@gmail.com, wrote: > Hello, > > > *forms.py:* > > class Newsletterform(StandardMixin): > class Meta: > model = Newsletter > fields = ['newslettername', 'from_link', 'to_list', > 'email_subject', '

Mixin add field to fields in forms

2021-04-18 Thread sebasti...@gmail.com
Hello, *forms.py:* class Newsletterform(StandardMixin): class Meta: model = Newsletter fields = ['newslettername', 'from_link', 'to_list', 'email_subject', 'text_message', 'html_message' ] *Mixins.py:* class StandardMixin(forms.ModelForm): class Meta: abstract =

Re: View photos or videos in the Django app

2021-04-18 Thread מוריה יצחקי
? ‫בתאריך שבת, 17 באפר׳ 2021 ב-20:55 מאת מוריה יצחקי <‪moriyal...@gmail.com ‬‏>:‬ > Hi > How to view photos or videos in the Django app > I would be very happy to help > Thank you!!! > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To un