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.http import HttpResponse,Http404
|
||||||
from django.core.servers.basehttp import FileWrapper
|
from django.core.servers.basehttp import FileWrapper
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
from django.utils.datetime_safe import datetime
|
||||||
|
|
||||||
import mimetypes
|
import mimetypes
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vi:si:et:sw=4:sts=4:ts=4
|
# vi:si:et:sw=4:sts=4:ts=4
|
||||||
try:
|
try:
|
||||||
from django.utils.datetime_safe import datetime
|
from django.utils import datetime
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue