Hi, All you have to do is add what you want to the dictionary that you need for your template. There isn't anything "magic" about the context. So for example, if you want to have a model called "user" in the template, you can add it by writing:
context = {} context['user'] = User.objects.get(pk=user_id) Fill the context with the information you want to present in the template for presentation. It's not much harder than that.... In the template you can then access the objects in the context object via {{user.fullName}} where you would get the fullname property from the user object. Regards, Andréas 2016-02-23 14:05 GMT+01:00 Malik Rumi <malik.a.r...@gmail.com>: > from the docs: > Changed in Django 1.8: > > The context argument used to be called dictionary. That name is > deprecated in Django 1.8 and will be removed in Django 1.10. > > > https://docs.djangoproject.com/en/1.9/topics/http/shortcuts/#optional-arguments > > > I've been fooling with Django since 1.6 and I don't recall it ever being > called "just" dictionary. But presumably it will still, in fact, be a > dictionary? > > > I get the fact that the dictionary maps from Python objects to where on > the template it goes, but that's really about all I've ever grasped about > context. I've read the docs, but I don't feel like I really 'get it'. > > > Can someone here suggest another source - book, blog, online, off, that > really goes into depth, and step by step explains context and all the > various ways it can be created in a view? It would be especially helpful if > this resource went into more advanced and complex contexts, like in a page > pulling from many different models. > > > Thanks. > > -- > 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+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at https://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/1e604039-1eda-4632-bc45-d0762e179eac%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/1e604039-1eda-4632-bc45-d0762e179eac%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALXYUbm-T3_c%2BEUX%2Bx6Su-E4Z6XaqNz1_bFmWt%3DVg0geFPa%2BSQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.