Django Query

21 views
Skip to first unread message

Eugene TUYIZERE

unread,
Oct 4, 2021, 2:30:04 PM10/4/21
to django...@googlegroups.com
Team,

Assume you have 3 tables PROVINCES, DISTRICTS, and SECTORS and you have Province, District and Sector field names respectively in each table. 

How can you display in the Django template the following table?

Province District Sectors
A A1 A11
A12
A2 A21
A22
A3 A31
A32

Any assistance will be appreciated
--
TUYIZERE Eugene

Msc Degree in Mathematical Science

African Institute for Mathematical Sciences (AIMS Cameroon)
Crystal Garden-Lime, Cameroon


Bsc in Computer Science

UR-Nyagatare Campus

Email: eugene....@aims-cameroon.org
           eugenet...@gmail.com

Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

Sebastian Jung

unread,
Oct 4, 2021, 7:00:21 PM10/4/21
to django...@googlegroups.com
Hello Eugene,

I think that django mptt can Store and display such a tree.

Regards

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABxpZHsGxujwVUp3NEXBWjBnOahYuPOBZccU8O%2BvejowDYxxvg%40mail.gmail.com.

Eugene TUYIZERE

unread,
Oct 5, 2021, 4:05:42 AM10/5/21
to django...@googlegroups.com
Is there any one with a typical example or tutorial  (of Django mptt) that tolks on the similar  issue as mine and share with me? 

regards, 

On Tue, 5 Oct 2021 at 01:00, Sebastian Jung <sebasti...@gmail.com> wrote:
Hello Eugene,

I think that django mptt can Store and display such a tree.

Regards

Eugene TUYIZERE <eugenet...@gmail.com> schrieb am Mo., 4. Okt. 2021, 20:29:
Team,

Assume you have 3 tables PROVINCES, DISTRICTS, and SECTORS and you have Province, District and Sector field names respectively in each table. 

How can you display in the Django template the following table?

Province District Sectors
A A1 A11
A12
A2 A21
A22
A3 A31
A32

Any assistance will be appreciated
--
TUYIZERE Eugene



Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABxpZHsGxujwVUp3NEXBWjBnOahYuPOBZccU8O%2BvejowDYxxvg%40mail.gmail.com.

--
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...@googlegroups.com.

Adeyemi Deji

unread,
Oct 5, 2021, 4:14:16 AM10/5/21
to Django users
You can read up the documentation regarding MPTT, sure to be useful.
Reply all
Reply to author
Forward
0 new messages