djangosnippets.org: Latest snippets posted by coolchevyhttps://djangosnippets.org/users/coolchevy/2012-05-26T19:07:46.295746-05:00coolchevyyandex maps templatetag
2012-05-26T19:07:46.295746-05:00coolchevyhttps://djangosnippets.org/snippets/2757/<p>https://github.com/coolchevy/django-yandexmaps</p>
<h1>django-yandexmaps</h1>
<p>easy maps integration via yandex maps api</p>
<h1>Installation</h1>
<ol>
<li>Add your YANDEXMAPS_API_KEY to settings.py http://api.yandex.ru/maps/form.xml/</li>
<li>Add 'yandex_maps' in INSTALLED_APPS</li>
</ol>
<h1>Usage</h1>
<p>Template::</p>
<pre><code>{% load yandexmaps_tags %}
{% yandex_map_by_address object.get_address object.title 500,300 %}
</code></pre>
<h1>Demo</h1>
<p>http://colorsound.com.ua/clubs/porter-pub-1/</p>
Freely redistributableGroup results by a range of dates in admin sidebar with calendar
2011-01-31T18:14:46.867927-06:00coolchevyhttps://djangosnippets.org/snippets/2344/<p>Adds filtering by ranges of dates in the admin filter sidebar.</p>
<p><a href="https://github.com/coolchevy/django-datefilterspec">https://github.com/coolchevy/django-datefilterspec</a></p>
<p><a href="http://coolchevy.org.ua">http://coolchevy.org.ua</a></p>
<p>https://github.com/coolchevy/django-datefilterspec/raw/master/datefilter.png</p>
<p>Example:</p>
<p>`
from django.db import models
import datefilterspec
class Person(models.Model):
date = models.DateTimeField(default=datetime.datetime.now)
date.date_filter = True</p>
<p>class Admin:
list_filter = ['date']</p>
Freely redistributable