Uploaded file performance

2020-11-12 Thread kern zhou
Hi, I am using the django to handle the file upload. In the view implementation, I am trying to write the uploaded file to disk, but it causes bad performance because writing the uploaded file to disk spend lots of time. Is any better solution to handle the file upload? Maybe create a detach th

Numeric field widget with built-in units

2020-11-12 Thread Mike Dewhirst
Does anyone know of a number field widget with a units string? For example ... +-+     Maximum concentration: | 25.0 | % +-+ Thanks Mike -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group a

Re: Incomprehension

2020-11-12 Thread LN Dev
Bonjour vous déjà déjà maîtriser python Il gio 12 nov 2020, 4:27 PM Vanelle ha scritto: > bonjour, svp je suis nouvelle et j'aimerais que vous me donniez quelques > astuces pour apprendre django > > -- > You received this message because you are subscribed to the Google Groups > "Django users" g

Re: Incomprehension

2020-11-12 Thread Yvan Tindo
Bonsoir, La meilleure façon de débuter est de suivre le tutoriel d'introduction sur la documentation officielle. - Le lien pour installer : https://docs.djangoproject.com/fr/3.0/intro/install/ - Le lien du tuto: https://docs.djangoproject.com/fr/3.0/intro/tutorial01/ Une fois que vous aurez termi

Re: EMAIL_BACKEND doesn't works with Amazon SES!?

2020-11-12 Thread ling...@gmail.com
This exception is raised when the server unexpectedly disconnects, or when an attempt is made to use the python mail SMTP instance before connecting it to a server. Clients sending outgoing mail should connect on port 587 and use starttls. To u

Incomprehension

2020-11-12 Thread Vanelle
bonjour, svp je suis nouvelle et j'aimerais que vous me donniez quelques astuces pour apprendre 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 django-us

REST framework API through Object of type datetime is not JSON serializable error with auth.backends.RemoteUserBackend

2020-11-12 Thread 'bala' via Django users
Hi All,migrating existing piston based Django api to REST framework api, it works in dev environment but once moved to QA with  django.contrib.auth.backends.RemoteUserBackend enabled in settings, getting the following error raise TypeError(f'Object of type {o.__class__.__name__} 'TypeError: Objec

Re: django adding element to list

2020-11-12 Thread Joel Goldstick
On Wed, Nov 11, 2020 at 7:48 PM rssail wrote: > > > I'm confused with how django adds elements to a list. consider the following: > > def add(request): > if request.method == "POST": > form = NewTaskForm(request.POST) should the above line be indented? > if form.is_