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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user