djangosnippets.org: Latest snippets tagged with 'events'https://djangosnippets.org/tags/events/2010-10-06T19:03:10.313313-05:00Generate Google Calendar links from django-event-calendar
2010-10-06T19:03:10.313313-05:00ElfSternberghttps://djangosnippets.org/snippets/2224/<p>This very simple templatetag can take event objects from django-event-calendar and create the appropriate URLs to automatically allow users to add events from your website to Google calendar.</p>
Freely redistributableAutomatically slugify slug fields in your models
2007-03-10T14:11:32.151221-06:00Aliquiphttps://djangosnippets.org/snippets/98/<p><em>I suppose I'm kind of stubborn, but I prefer to use underscores to replace spaces and other characters. Of course, that shouldn't hold you back from using the build-in slugify filter :)</em>
</p>
<p><strong> Forcing the slug to use ASCII equivalents: </strong>
</p>
<p>Transforming titles like "Äës" to slugs like "aes" was kind of …</p>
Freely redistributable