Flask to django

2020-08-08 Thread Amar prakash
Anyway to transform my flask code to 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-users+unsubscr...@googlegroups.com. To view this discussion on

Re: Flask to django

2020-08-08 Thread sakshi jain
hello On Sat, Aug 8, 2020, 19:31 Amar prakash wrote: > Anyway to transform my flask code to 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 dja

Re: Flask to django

2020-08-08 Thread Mottaz Hegaze
no On Sat, Aug 8, 2020 at 4:22 PM sakshi jain wrote: > hello > > On Sat, Aug 8, 2020, 19:31 Amar prakash wrote: > >> Anyway to transform my flask code to django >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from

Re: How to populate fields generated by modelformset_factory with data from database

2020-08-08 Thread Michael Klassen
Hi, thank you for your response but I need some more specifics. My queryset includes the questions which the form presents to the user. How do I get their responses included in the queryset? Do I have to somehow join tables to get both questions and responses? If I follow the relationships

Re: Flask to django

2020-08-08 Thread Miracle
You'll have to build a brand new application using django. Django and flask are quite similar, so porting to django won't be so much issue. Also, both work with python. However, there's no automatic way to change from flask to django. You'll have to write the codes. And it's not totally a big dea

Re: How to populate fields generated by modelformset_factory with data from database

2020-08-08 Thread Integr@te System
Hi Micheal, https://docs.djangoproject.com/en/3.0/topics/forms/formsets/ You see in doc with example such as custom queryset, initial data get from existed instances all base on your design and codebase. On Sat, Aug 8, 2020, 10:48 PM Michael Klassen wrote: > Hi, thank you for your response b

Django jinja queryset filter lenth

2020-08-08 Thread N'BE SORO
Good evening please Can you help me? I want to display the number of items with a filter. Example: this call returns 4 elements {{ item.class.classecours.all|length}} at the .all level make an item.class.classecours.filter(status==True)|length -- You received this message because you are subsc

Re: Python-django project

2020-08-08 Thread learn code
Thank you all for your interest!!! On Fri, Aug 7, 2020 at 2:18 PM Anu Pande wrote: > Interested. > > On Fri, Aug 7, 2020, 21:09 hajar Benjat wrote: > >> Interested >> >> On Tue, Jul 21, 2020, 4:10 AM learn code wrote: >> >>> Hi everyone, >>> >>> I am learning python and django, like to work on

ERROR

2020-08-08 Thread traore arouna
Hello I am here because I am developing an e-commerce application. But at a certain level of my code when I run my server with the command python manage runserver I have an error message Uncaught ReferenceError: info is not defined -- You received this message because you are subscribed to the

Re: ERROR

2020-08-08 Thread Agoua David
Can you send a screenshot of the view file Le sam. 8 août 2020 à 20:21, traore arouna a écrit : > Hello > I am here because I am developing an e-commerce application. > But at a certain level of my code when I run my server with the command > python manage runserver > I have an error message > U

Re: Django jinja queryset filter lenth

2020-08-08 Thread Agoua David
You Can try to use .count instead Le sam. 8 août 2020 à 17:56, N'BE SORO a écrit : > Good evening please > > Can you help me? > > I want to display the number of items with a filter. > Example: > this call returns 4 elements > {{ item.class.classecours.all|length}} > > at the .all level > make a

Re: Django jinja queryset filter lenth

2020-08-08 Thread Agoua David
As Django template engine do not support the parenthèses you Can try to make a custom filter Le sam. 8 août 2020 à 20:27, Agoua David a écrit : > You Can try to use .count instead > > Le sam. 8 août 2020 à 17:56, N'BE SORO a écrit : > >> Good evening please >> >> Can you help me? >> >> I want t

Gstreamer

2020-08-08 Thread Amar prakash
Any code for how to use gstreamer in 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-users+unsubscr...@googlegroups.com. To view this discussion o

Re: ERROR

2020-08-08 Thread Kovy Jacob
Are you switching into your projects directory and then using 'python manage.py runserver' from command prompt/terminal to run your website? On Sat, Aug 8, 2020 at 4:25 PM Agoua David wrote: > Can you send a screenshot of the view file > > Le sam. 8 août 2020 à 20:21, traore arouna a écrit : >

Re: Security issue in django.db.models

2020-08-08 Thread Stephen J. Butler
If you look at the documentation for 'blank' it says: """ Note that this is different than null. null is purely database-related, whereas blank is validation-related. If a field has blank=True, *form validation* will allow entry of an empty value. If a field has blank=False, the field will be requ