Wednesday, December 11, 2019

Re: Need to Query complex django model

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







On Wed, Dec 11, 2019 at 1:35 PM Kasper Laudrup <laudrup@stacktrace.dk> wrote:
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

--
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+unsubscribe@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.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAKroR%2B1Y%3Dr1ZPsnmyj6AjCYd7NqsxN7AhfPJYtw-yAm1jvG2Tw%40mail.gmail.com.

No comments:

Post a Comment