work around local django.utils package
This commit is contained in:
parent
e8aa6fe1e4
commit
515d769f9f
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue