I suggest you read the djangobook or some of the django documentation because
this is very well documented.
Good luck with that!
Op 1-sep-2010, om 15:13 heeft Pradnya het volgende geschreven:
> ok. Is there any way I can load the model inside HTML template? What
> is {% load %} tag all about?
>
> On Sep 1, 6:02 pm, Jonas Geiregat <[email protected]> wrote:
>> You don't write Python code inside your template file. That's one of the
>> basic django template rules.
>> You can pass values from your views to your template and show them there.
>> Or generate the HTML in your view and show it from there, which isn't
>> something I could advise if you're creating a larger application.
>>
>> Op 1-sep-2010, om 14:53 heeft Pradnya het volgende geschreven:
>>
>>
>>
>>> Hello,
>>
>>> Is it possible to fetch a particular record from model using
>>> school.object.get(id = 1) inside html template.
>>
>>> Please suggest.
>>
>>> Thanks
>>> Pradnya
>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Django users" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group
>>> athttp://groups.google.com/group/django-users?hl=en.
>>
>> Met vriendelijke groeten,
>>
>> Jonas Geiregat
>> [email protected]
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
Met vriendelijke groeten,
Jonas Geiregat
[email protected]
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.