Re: What is different about "./manage.py shell" vs. normal Python shell that makes this list comprehension not work anymore?

2021-09-29 Thread Christian Seberino
Josue Thanks so much! That makes so much sense. I really appreciate it. Sincerely, Chris On Wed, Sep 29, 2021 at 5:27 PM Josué Alvarez wrote: > > Try with: > > *global allowed* > *allowed* = [e.service.name for e in aservs] > ... > servs = [a.service for a in appts if (a.service in *allo

combine opencv and django?

2021-09-29 Thread Prafull Epili
How can I stream live video on django with opencv? Please any one have a solution then let me know. -- 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

Re: What is different about "./manage.py shell" vs. normal Python shell that makes this list comprehension not work anymore?

2021-09-29 Thread Josué Alvarez
Try with: *global allowed* *allowed* = [e.service.name for e in aservs] ... servs = [a.service for a in appts if (a.service in *allowed*)] El lunes, 20 de septiembre de 2021 a las 8:46:07 UTC-6, cseb...@gmail.com escribió: > I noticed a list comprehension bombs in the "./manage.py shell" s

Is DATE_TIME_FORMAT in settings operationnal

2021-09-29 Thread dilo...@gmail.com
I have carefully read the documentation for the use of DATE_TIME8ROMAT in settings. It is here https://docs.djangoproject.com/en/3.2/ref/templates/builtins/#date If I put the format string in the template it does format it correctly. If I put the format in the settings, I get the default format

Quit the server with CTRL-BREAK. code 400, message Bad request version ('ÚÚ\x13\x01\x13\x02\x13\x03À+À/

2021-09-29 Thread emmanuel odor
Hi , I keep having this error whenever i run the python manage.py runserver Django version 3.2.7, using settings 'crm.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CTRL-BREAK. code 400, message Bad request version ('ÚÚ\x13\x01\x13\x02\x13\x03À+À/À,À0̨̩À\x1

How send data to Django app using Javascript or JQuery? (Having trouble doing a POST)

2021-09-29 Thread cseb...@gmail.com
How send data from client Javascript to Django server? I tried the following but it didn't work. I want to read "token" cookie value and send to server but it never receives it as a valid form. Any sample working code greatly appreciated. function start_processing() {

Re: INPUT TEXT in grid

2021-09-29 Thread Adeyemi Deji
Based on my observation. Your form doesn't have it's href attribute, secondly in the view, the function should ve a post method and not get, thirdly back to the template, u should have a name attribute for ur input tag which u do but the value should be an arbitrary name or any name of ur choice as