Thursday, March 31, 2011

Re: Serve a tracking pixel via Django

On Thu, Mar 31, 2011 at 7:18 PM, Russell Keith-Magee
<russell@keith-magee.com> wrote:
> Sure. Write a view that returns the content. It's 3 lines of code (a
> couple more if you count imports and whitespace). Added bonus -- it's
> actually more efficient than serve(), because it doesn't impose a disk
> access overhead every time it gets called.

even better, use nginx empty_gif and get the tracking data from the logs.


--
Javier

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment