~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to mainpage/views.py

  • Committer: franku
  • Date: 2016-12-13 18:28:51 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: somal@arcor.de-20161213182851-bo5ebf8pdvw5beua
run the script

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
 
158
158
 
159
159
def view_locale(request):
160
 
    loc_info = "getlocale: " + str(locale.getlocale()) + \
161
 
        "<br/>getdefaultlocale(): " + str(locale.getdefaultlocale()) + \
162
 
        "<br/>fs_encoding: " + str(sys.getfilesystemencoding()) + \
163
 
        "<br/>sys default encoding: " + str(sys.getdefaultencoding())
 
160
    loc_info = 'getlocale: ' + str(locale.getlocale()) + \
 
161
        '<br/>getdefaultlocale(): ' + str(locale.getdefaultlocale()) + \
 
162
        '<br/>fs_encoding: ' + str(sys.getfilesystemencoding()) + \
 
163
        '<br/>sys default encoding: ' + str(sys.getdefaultencoding())
164
164
    return HttpResponse(loc_info)