bread-and-pepper/django-userena — pull request #139 by barszczmm (2012-01-16 17:08:22+00:00)
Title: Dajngo 1.4 compatibility fix and updates in Polish translation

Django 1.4 adds support for time zones (https://docs.djangoproject.com/en/dev/topics/i18n/timezones/#time-zones) so I've changed code like this:

now = datetime.datetime.now()

into:

try:
from django.utils import timezone
now = timezone.now()
except ImportError:
now = datetime.datetime.now()

This code should work in old and new versions of Django.