You'll need to do the test in the view and then pass the result of the test into the template.
On Jul 7, 10:13 am, grimmus <graham.col...@gmail.com> wrote: > Hi, > > I need to show a javascript lightbox popup for new visitors to my > site. > > I presume using a cookie is the best way to achieve this. But how can > i check whether the cookie exists in my template, so i can call some > javascript code if it's a new visitor ? > > I hope i have been clear, > > Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.