1
0
mirror of https://github.com/django/django.git synced 2025-10-29 00:26:07 +00:00

Updated core base translation files with new strings. Refs #17822.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17655 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel
2012-03-05 02:23:17 +00:00
parent a78e61b5e9
commit b403e43c51
3 changed files with 112 additions and 76 deletions

View File

@@ -51,7 +51,7 @@ def serve(request, path, document_root=None, show_indexes=False):
return directory_index(newpath, fullpath)
raise Http404(_(u"Directory indexes are not allowed here."))
if not os.path.exists(fullpath):
raise Http404(_(u'"%s" does not exist') % fullpath)
raise Http404(_(u'"%(path)s" does not exist') % {'path': fullpath})
# Respect the If-Modified-Since header.
statobj = os.stat(fullpath)
mimetype, encoding = mimetypes.guess_type(fullpath)