Re: sub-list not showing

2023-03-16 Thread Brian Carey
A quick glance: In your temple for loop you have 'student_set' in the conditional and  'students_set' in the loop. That doesn't seem right. ⁣Get BlueMail for Android ​ On Mar 16, 2023, 9:01 PM, at 9:01 PM, nef wrote: >Hi Daniel, >Thanks for your feedback. >Please, is there anyone who can

Re: sub-list not showing

2023-03-16 Thread nef
Hi Daniel, Thanks for your feedback. Please, is there anyone who can help me on how to do it? Thank you On Thursday, 16 March 2023 at 22:01:53 UTC+1 Namanya Daniel wrote: > You need to achieve related fields to achieve the most of this… thank you > > On Thu, 16 Mar 2023 at 23:59, Namanya

Re: sub-list not showing

2023-03-16 Thread Namanya Daniel
You need to achieve related fields to achieve the most of this… thank you On Thu, 16 Mar 2023 at 23:59, Namanya Daniel wrote: > Hello… am using a phone to reply this but I would love to give a hint on > something. When you have a child, it’s means there’s a parent foreign key > in the child

Re: sub-list not showing

2023-03-16 Thread Namanya Daniel
Hello… am using a phone to reply this but I would love to give a hint on something. When you have a child, it’s means there’s a parent foreign key in the child model. You can use grouper to group child model results so that every is grouped together under a particular parent field. On Thu, 16 Mar

Re: Testing django

2023-03-16 Thread Ayush Bisht
Yeah, I got you.. My concern is on the documentation, the way it has provided the commands for executing test cases. That path.to.settings seems confusing sometimes.. On Fri, 17 Mar, 2023, 1:20 am Bhuvnesh Sharma, wrote: > We can run django tests with custom settings by using --settings flag

Deleted django_content_type table

2023-03-16 Thread shailesh sachan
Now i am not able to do anything and i cannot lose the data please help restore contenttypes -- 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

Re: Testing django

2023-03-16 Thread Bhuvnesh Sharma
We can run django tests with custom settings by using --settings flag and providing the path to the custom settings file . For example: ./runtests.py --settings=new_app.test_settings What do you want to do exactly? On Fri, Mar 17, 2023 at 1:00 AM Ayush Bisht wrote: > Seems like, it is for

Re: Testing django

2023-03-16 Thread Ayush Bisht
Seems like, it is for defining how actually we are selecting the specific test case. It is very confusing at first. Can't we just explain it with an example.. On Friday, March 17, 2023 at 12:54:27 AM UTC+5:30 Ayush Bisht wrote: > * ./runtests.py --settings=path.to.settings

Testing django

2023-03-16 Thread Ayush Bisht
* ./runtests.py --settings=path.to.settings i18n.tests.TranslationTests* what exactly is the purpose of *path.to.settings,* I'm getting an error while running the above line. Can anyone please explain? *Error* Testing against Django installed in '/home/ayush/OS/django/django' with up to 8

sub-list not showing

2023-03-16 Thread nef
Hi all, I am facing problem to display a sub-list. In my model, I ahave a Student and Parent models. A prent can have one or more students. I want to list all the student in the parent page, but it is not showing. Please see here my code. Models class Student(models.Model): #std_matricule =