djangosnippets.org: Latest snippets posted by atodorov-otbhttps://djangosnippets.org/users/atodorov-otb/2013-12-22T15:27:52.497281-06:00atodorov-otbInherit the standard url tag to include domain name
2013-12-22T15:27:52.497281-06:00atodorov-otbhttps://djangosnippets.org/snippets/3013/<p>This module extends the standard `url' template tag in Django and adds support for fully qualified domain name URLs. It also can be extended with simple URL load balancing techniques if desired.</p>
<p>See my blog for the background story:
<a href="http://atodorov.org/blog/2013/12/22/django-template-tag-inheritance-howto/">http://atodorov.org/blog/2013/12/22/django-template-tag-inheritance-howto/</a></p>
Freely redistributableDecorator to execute a method only once
2013-12-11T15:47:24.581181-06:00atodorov-otbhttps://djangosnippets.org/snippets/3010/<p>Beware if using Amazon Simple Queue Service to execute Celery tasks which send email messages! Sometimes SQS messages are duplicated which results in multiple copies of the messages being sent. This is a simple decorator which uses a cache backend to prevent the task from executing twice in a specified …</p>
Freely redistributable