diff --git a/ox/django/utils.py b/ox/django/utils.py index 876ac94..261f979 100644 --- a/ox/django/utils.py +++ b/ox/django/utils.py @@ -1,6 +1,7 @@ from django.http import HttpResponse,Http404 from django.core.servers.basehttp import FileWrapper from django.conf import settings +from django.utils.datetime_safe import datetime import mimetypes import os diff --git a/ox/utils.py b/ox/utils.py index fbafa02..27118a8 100644 --- a/ox/utils.py +++ b/ox/utils.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # vi:si:et:sw=4:sts=4:ts=4 try: - from django.utils.datetime_safe import datetime + from django.utils import datetime except ImportError: from datetime import datetime