work around local django.utils package

This commit is contained in:
j 2011-04-05 14:06:56 +02:00
parent e8aa6fe1e4
commit 515d769f9f
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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