forked from expo/troggle
test to find out locale set in the WSGI enivroment
This commit is contained in:
parent
654f8e8c6c
commit
843bfa8ba6
@ -342,6 +342,12 @@ def editexpopage(request, path):
|
||||
pageform = ExpoPageForm({"html": body, "title": title})
|
||||
else:
|
||||
body = "### File not found ###\n" + str(filepath)
|
||||
import sys
|
||||
import locale
|
||||
body = body + "\nsys.getdefaultencoding() = " + sys.getdefaultencoding()
|
||||
body = body + "\nsys.getfilesystemencoding() = " + sys.getfilesystemencoding()
|
||||
body = body + "\nlocale.getdefaultlocale() = " + locale.getdefaultlocale()
|
||||
body = body + "\nlocale.getpreferredencoding() = " + locale.getpreferredencoding()
|
||||
pageform = ExpoPageForm({"html": body, "title": "Missing"})
|
||||
return render(request, 'editexpopage.html', {'path': path, 'form': pageform, })
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user