Re: Django dependent select without Ajax

2021-03-30 Thread RANGA BHARATH JINKA
Hi, Try this https://www.youtube.com/watch?v=LmYDXgYK1so_channel=CodeBand On Wed, Mar 31, 2021 at 5:41 AM Ryan Nowakowski wrote: > About how many elements do you anticipate will be in the drop-down? > > On March 30, 2021 8:59:19 AM CDT, Sachin Kumar > wrote: >> >> Hi Experts, >> >> Does

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
& run migrations On Wed, Mar 31, 2021, 08:37 Ashima jain wrote: > ur pub_date is bad practice & remove timezone from ur views > > On Tue, Mar 30, 2021, 18:28 sahil gupta > wrote: > >> from django.utils import timezone >> >>> q = Question(question_text="What's new?", pub_date=timezone.now()) >>

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
ur pub_date is bad practice & remove timezone from ur views On Tue, Mar 30, 2021, 18:28 sahil gupta wrote: > from django.utils import timezone > >>> q = Question(question_text="What's new?", pub_date=timezone.now()) > Traceback (most recent call last): > File "", line 1, in > File >

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
any migration is pending On Wed, Mar 31, 2021, 08:31 Ashima jain wrote: > did u import timezone in ur model > > On Wed, Mar 31, 2021, 08:21 Ashima jain wrote: > >> check ur settings >> >> On Wed, Mar 31, 2021, 08:21 Ashima jain wrote: >> >>> & check ur code oncs again >>> >>> On Wed, Mar 31,

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
did u import timezone in ur model On Wed, Mar 31, 2021, 08:21 Ashima jain wrote: > check ur settings > > On Wed, Mar 31, 2021, 08:21 Ashima jain wrote: > >> & check ur code oncs again >> >> On Wed, Mar 31, 2021, 08:19 Ashima jain wrote: >> >>> I think you don't declare any field name >>> >>>

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
check ur settings On Wed, Mar 31, 2021, 08:21 Ashima jain wrote: > & check ur code oncs again > > On Wed, Mar 31, 2021, 08:19 Ashima jain wrote: > >> I think you don't declare any field name >> >> On Wed, Mar 31, 2021, 05:14 Rama akki wrote: >> >>> you may not have or error while writing key

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
& check ur code oncs again On Wed, Mar 31, 2021, 08:19 Ashima jain wrote: > I think you don't declare any field name > > On Wed, Mar 31, 2021, 05:14 Rama akki wrote: > >> you may not have or error while writing key argument 'question_text' >> please see in your data base model >> >> On Tue, 30

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
I think you don't declare any field name On Wed, Mar 31, 2021, 05:14 Rama akki wrote: > you may not have or error while writing key argument 'question_text' > please see in your data base model > > On Tue, 30 Mar 2021, 9:29 pm sahil gupta, > wrote: > >> ok fine , please do share >> >> >> On

Re: Django dependent select without Ajax

2021-03-30 Thread Ryan Nowakowski
About how many elements do you anticipate will be in the drop-down? On March 30, 2021 8:59:19 AM CDT, Sachin Kumar wrote: >Hi Experts, > >Does anyone knows Drop down list in Django without Ajax which is faster > >enough to fetch data from Big DataBase. > >Please guide me on this. > >Regards

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Rama akki
you may not have or error while writing key argument 'question_text' please see in your data base model On Tue, 30 Mar 2021, 9:29 pm sahil gupta, wrote: > ok fine , please do share > > > On Tuesday, March 30, 2021 at 8:07:15 PM UTC+5:30 vn241...@gmail.com > wrote: > >> okk sahil wait for

Re: Django asychronous for millions of users

2021-03-30 Thread Josh moten
I am trying to implement the right infrastructure, so that I can be able to support all the users. I am in no way trying to deceive anyone. I am asking because I truly want to make the right decisions from the beginning, so that it will be cost effective. I am thinking of using AWS elastic

Re: Django asychronous for millions of users

2021-03-30 Thread Lars Liedtke
Hello Josh, somehow this sounds a bit sketchy to me. Could you please extend your request to your plans to setup such a system. This is not simply done with choosing "the right"  library or package. This has to be a quite elaborate system with multiple kinds of Software, like caches as redis

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread sahil gupta
ok fine , please do share On Tuesday, March 30, 2021 at 8:07:15 PM UTC+5:30 vn241...@gmail.com wrote: > okk sahil wait for sometime I sharing ur problems with my team_mates > > On Tue, Mar 30, 2021, 20:00 sahil gupta wrote: > >> On Tuesday, March 30, 2021 at 7:30:13 PM UTC+5:30

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
okk sahil wait for sometime I sharing ur problems with my team_mates On Tue, Mar 30, 2021, 20:00 sahil gupta wrote: > On Tuesday, March 30, 2021 at 7:30:13 PM UTC+5:30 vn241...@gmail.com > wrote: > >> sahil which model u use ..plz mentioned in detail >> >> On Tue, Mar 30, 2021, 19:27 sahil

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread sahil gupta
On Tuesday, March 30, 2021 at 7:30:13 PM UTC+5:30 vn241...@gmail.com wrote: > sahil which model u use ..plz mentioned in detail > > On Tue, Mar 30, 2021, 19:27 sahil gupta wrote: > >> unable to figure out it, please do help >> >> >> On Tue, Mar 30, 2021 at 6:32 PM Ashima jain wrote: >> >>> its

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
sahil which model u use ..plz mentioned in detail On Tue, Mar 30, 2021, 19:27 sahil gupta wrote: > unable to figure out it, please do help > > > On Tue, Mar 30, 2021 at 6:32 PM Ashima jain wrote: > >> its a type error >> >> On Tue, Mar 30, 2021, 18:28 sahil gupta >> wrote: >> >>> from

Django dependent select without Ajax

2021-03-30 Thread Sachin Kumar
Hi Experts, Does anyone knows Drop down list in Django without Ajax which is faster enough to fetch data from Big DataBase. Please guide me on this. Regards Sachin -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread sahil gupta
unable to figure out it, please do help On Tue, Mar 30, 2021 at 6:32 PM Ashima jain wrote: > its a type error > > On Tue, Mar 30, 2021, 18:28 sahil gupta > wrote: > >> from django.utils import timezone >> >>> q = Question(question_text="What's new?", pub_date=timezone.now()) >> Traceback

Re: Chaining filter is not working

2021-03-30 Thread oba stephen
Also you need to assign a related name to the foreign key for that filter to work. Best regards Stephen Oba On Tue, Mar 30, 2021, 1:58 PM Saurabh Ahire wrote: > Please check the model class also , if there are any mistakes point them > out > > -- > You received this message because you are

Re: Chaining filter is not working

2021-03-30 Thread oba stephen
You didn't equate to anything. You have to specify what quality you are filtering by. Best regards Stephen Oba On Tue, Mar 30, 2021, 1:58 PM Saurabh Ahire wrote: > Please check the model class also , if there are any mistakes point them > out > > -- > You received this message because you

Re: Facing_error_while_creating_question_in_shell

2021-03-30 Thread Ashima jain
its a type error On Tue, Mar 30, 2021, 18:28 sahil gupta wrote: > from django.utils import timezone > >>> q = Question(question_text="What's new?", pub_date=timezone.now()) > Traceback (most recent call last): > File "", line 1, in > File >

Facing_error_while_creating_question_in_shell

2021-03-30 Thread sahil gupta
from django.utils import timezone >>> q = Question(question_text="What's new?", pub_date=timezone.now()) Traceback (most recent call last): File "", line 1, in File "C:\Users\DELL\Envs\test3\lib\site-packages\django\db\models\base.py", line 501, in __init__ raise TypeError("%s() got an

Django asychronous for millions of users

2021-03-30 Thread Josh moten
I am creating an auction that will be hosting millions to possibly billions of users so I am trying to figure out which would be the best library to use for scalability at a rapid pace. I am positive to reach a million users in four months. What is the best library and/or package to us for over

Data getting printed in Network Response and not in HTML table in Django

2021-03-30 Thread Aurora Eugene
Hi , i am struggling with a problem for the past 2 weeks , can anyone help me with this question Stack Question Please Help , all details are there in this question Thanks , Aurora -- You received this message because you are subscribed

How to test foreign key in clean() [was: Django Admin 3.1.7: getting RelatedObjectDoesNotExist for required ForeignKey]

2021-03-30 Thread Olivier
Hello, I could source the issue in a line in EthernetInterface clean() function. Here is the error triggering line: other_if = EthernetInterface.objects.exclude(server_host__pk=self.server_host.pk).filter(MAC=self.MAC).first() When I replace this line with ones bellow, behaviour is as expected

Trouble with Select_for_update. Postgresql

2021-03-30 Thread zidan....@gmail.com
Hi there . code is as follows: ` models.Classroom table have just one record. # THREAD 1 school_classrooms = models.Classroom.objects.select_for_update().all() with transaction.atomic(): list(school_classrooms) time.sleep(10) # THREAD 2 classroom = models.Classroom.objects.first() classroom.name