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 =
* ./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 pro
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 i18n.tests.Translatio
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 defin
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 django-users+unsubs
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 an
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
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 mode
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 Daniel
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 help
The easiest way to do this is to have a query of all students that has that
parent.
Add Something like this to your parent detail views,
students = Students.objects.filter(parent__id = pk)
context["students"] = students
Your Template should be
{% for student in students %}
{{student.std_matric
11 matches
Mail list logo