Need to Query complex django model

24 views
Skip to first unread message

Nitin Kalmaste

unread,
Dec 11, 2019, 2:05:48 AM12/11/19
to django...@googlegroups.com
Hello community,
I need to make django views for the models described below.
How do i create query to write in view


Please Need Help seriously

Kasper Laudrup

unread,
Dec 11, 2019, 3:06:09 AM12/11/19
to django...@googlegroups.com
Hi Nitin,

On 11/12/2019 08.04, Nitin Kalmaste wrote:
> Hello community,
> I need to make django views for the models described below.
> How do i create query to write in view
>
> https://stackoverflow.com/questions/59280345/how-to-query-django-models-for-complex-models-like-this
>

You are approaching this the wrong way. You definitely shouldn't be
formatting HTML the way you are doing it.

Read up on Django Templates:

https://docs.djangoproject.com/en/2.2/topics/templates/

Or at least start out by following the Django tutorial:

https://docs.djangoproject.com/en/2.2/intro/tutorial01/

Kind regards,

Kasper Laudrup

Nitin Kalmaste

unread,
Dec 11, 2019, 3:34:50 AM12/11/19
to django...@googlegroups.com
Thanks for the suggestion but i am working on the somebody's project to improve it. I have done querying the database and i get results but now i am stuck with the html that is rendered in utils.py
I am getting data from this type of calender https://alexpnt.github.io/2017/07/15/django-calendar/
how can i create input form from this calender
image.png

image.png

image.png


--
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/55502fe8-35df-ca31-e864-6229bfe59ab2%40stacktrace.dk.
Reply all
Reply to author
Forward
0 new messages