ope体育app下载手机版-ope电竞投注-ope电竞官网

'ascii' codec can't encode characters in position 5-11: ordinal not in range(128)
Request Method:
GET
Request URL:
http://www.bannei.com/tag/%E0%B9%80%E0%B8%A5%E0%B8%A2%E0%B9%8C%E0%B8%A7%E0%B8%B4%E0%B8%99-%E0%B8%84%E0%B8%B9%E0%B8%A3%E0%B9%8C%E0%B8%8B%E0%B8%B2%E0%B8%A7%E0%B9%88%E0%B8%B2/
Django Version:
1.2.3
Exception Type:
UnicodeEncodeError
Exception Value:
'ascii' codec can't encode characters in position 5-11: ordinal not in range(128)
Exception Location:
./bannei/sessions/middleware.py in process_request, line 11
Python Executable:
/usr/bin/uwsgi
Python Version:
2.7.5
Python Path:
['.', '', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']
Server time:
星期一, 16 九月 2019 16:23:39 +0800

Unicode error hint

The string that could not be encoded/decoded was: /tag/เลย์วิน-คูร์

Traceback Switch to copy-and-paste view

  • /usr/lib/python2.7/site-packages/django/core/handlers/base.py in get_response
    1. # Setup default url resolver for this thread.
    2. urlconf = settings.ROOT_URLCONF
    3. urlresolvers.set_urlconf(urlconf)
    4. resolver = urlresolvers.RegexURLResolver(r'^/', urlconf)
    5. # Apply request middleware
    6. for middleware_method in self._request_middleware:
    1. response = middleware_method(request) ...
    1. if response:
    2. return response
    3. if hasattr(request, "urlconf"):
    4. # Reset url resolver with a custom urlconf.
    5. urlconf = request.urlconf
    Variable Value
    exceptions
    <module 'django.core.exceptions' from '/usr/lib/python2.7/site-packages/django/core/exceptions.pyc'>
    middleware_method
    <bound method SessionMiddleware.process_request of <bannei.sessions.middleware.SessionMiddleware object at 0x7f58ff5f1050>>
    receivers
    [(<function _rollback_on_exception at 0x7f58fc070578>, None)]
    request
    <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'deflate, gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.bannei.com', 'HTTP_USER_AGENT': 'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)', 'HTTP_X_FORWARDED_FOR': '156.235.95.51', 'HTTP_X_REAL_IP': '156.235.95.51', 'PATH_INFO': u'/tag/\u0e40\u0e25\u0e22\u0e4c\u0e27\u0e34\u0e19-\u0e04\u0e39\u0e23\u0e4c\u0e0b\u0e32\u0e27\u0e48\u0e32/', 'QUERY_STRING': '', 'REMOTE_ADDR': '192.168.0.72', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/tag/\xe0\xb9\x80\xe0\xb8\xa5\xe0\xb8\xa2\xe0\xb9\x8c\xe0\xb8\xa7\xe0\xb8\xb4\xe0\xb8\x99-\xe0\xb8\x84\xe0\xb8\xb9\xe0\xb8\xa3\xe0\xb9\x8c\xe0\xb8\x8b\xe0\xb8\xb2\xe0\xb8\xa7\xe0\xb9\x88\xe0\xb8\xb2/', 'SCRIPT_NAME': u'', 'SERVER_NAME': '414c0481f1a8', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'uwsgi.core': 0, 'uwsgi.node': '414c0481f1a8', 'uwsgi.version': '2.0.18', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f58ff8df930>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f58f451c480>, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
    resolver
    <RegexURLResolver bannei.urls (None:None) ^/>
    response
    None
    self
    <django.core.handlers.wsgi.WSGIHandler object at 0x7f590594e9d0>
    settings
    <django.conf.LazySettings object at 0x7f58ff8a24d0>
    urlconf
    'bannei.urls'
    urlresolvers
    <module 'django.core.urlresolvers' from '/usr/lib/python2.7/site-packages/django/core/urlresolvers.pyc'>
  • ./bannei/sessions/middleware.py in process_request
    1. from django.utils.cache import patch_vary_headers
    2. from django.utils.http import cookie_date
    3. from django.utils.importlib import import_module
    4. class SessionMiddleware(object):
    5. def process_request(self, request):
    1. path = str(request.path) ...
    1. if path.startswith('/site_media/'):
    2. request.session = None
    3. return None
    4. if path.startswith('/media/'):
    5. request.session = None
    6. return None
    Variable Value
    request
    <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'deflate, gzip', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'www.bannei.com', 'HTTP_USER_AGENT': 'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)', 'HTTP_X_FORWARDED_FOR': '156.235.95.51', 'HTTP_X_REAL_IP': '156.235.95.51', 'PATH_INFO': u'/tag/\u0e40\u0e25\u0e22\u0e4c\u0e27\u0e34\u0e19-\u0e04\u0e39\u0e23\u0e4c\u0e0b\u0e32\u0e27\u0e48\u0e32/', 'QUERY_STRING': '', 'REMOTE_ADDR': '192.168.0.72', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/tag/\xe0\xb9\x80\xe0\xb8\xa5\xe0\xb8\xa2\xe0\xb9\x8c\xe0\xb8\xa7\xe0\xb8\xb4\xe0\xb8\x99-\xe0\xb8\x84\xe0\xb8\xb9\xe0\xb8\xa3\xe0\xb9\x8c\xe0\xb8\x8b\xe0\xb8\xb2\xe0\xb8\xa7\xe0\xb9\x88\xe0\xb8\xb2/', 'SCRIPT_NAME': u'', 'SERVER_NAME': '414c0481f1a8', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.0', 'uwsgi.core': 0, 'uwsgi.node': '414c0481f1a8', 'uwsgi.version': '2.0.18', 'wsgi.errors': <open file 'wsgi_errors', mode 'w' at 0x7f58ff8df930>, 'wsgi.file_wrapper': <built-in function uwsgi_sendfile>, 'wsgi.input': <uwsgi._Input object at 0x7f58f451c480>, 'wsgi.multiprocess': True, 'wsgi.multithread': True, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
    self
    <bannei.sessions.middleware.SessionMiddleware object at 0x7f58ff5f1050>


  • Request information

    GET

    No GET data

    POST

    No POST data

    FILES

    No FILES data

    No cookie data

    META

    Variable Value
    HTTP_ACCEPT
    '*/*'
    HTTP_ACCEPT_ENCODING
    'deflate, gzip'
    HTTP_CONNECTION
    'close'
    HTTP_HOST
    'www.bannei.com'
    HTTP_USER_AGENT
    'Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)'
    HTTP_X_FORWARDED_FOR
    '156.235.95.51'
    HTTP_X_REAL_IP
    '156.235.95.51'
    PATH_INFO
    u'/tag/\u0e40\u0e25\u0e22\u0e4c\u0e27\u0e34\u0e19-\u0e04\u0e39\u0e23\u0e4c\u0e0b\u0e32\u0e27\u0e48\u0e32/'
    QUERY_STRING
    ''
    REMOTE_ADDR
    '192.168.0.72'
    REQUEST_METHOD
    'GET'
    REQUEST_URI
    '/tag/\xe0\xb9\x80\xe0\xb8\xa5\xe0\xb8\xa2\xe0\xb9\x8c\xe0\xb8\xa7\xe0\xb8\xb4\xe0\xb8\x99-\xe0\xb8\x84\xe0\xb8\xb9\xe0\xb8\xa3\xe0\xb9\x8c\xe0\xb8\x8b\xe0\xb8\xb2\xe0\xb8\xa7\xe0\xb9\x88\xe0\xb8\xb2/'
    SCRIPT_NAME
    u''
    SERVER_NAME
    '414c0481f1a8'
    SERVER_PORT
    '80'
    SERVER_PROTOCOL
    'HTTP/1.0'
    uwsgi.core
    0
    uwsgi.node
    '414c0481f1a8'
    uwsgi.version
    '2.0.18'
    wsgi.errors
    <open file 'wsgi_errors', mode 'w' at 0x7f58ff8df930>
    wsgi.file_wrapper
    <built-in function uwsgi_sendfile>
    wsgi.input
    <uwsgi._Input object at 0x7f58f451c480>
    wsgi.multiprocess
    True
    wsgi.multithread
    True
    wsgi.run_once
    False
    wsgi.url_scheme
    'http'
    wsgi.version
    (1, 0)

    Settings

    Using settings module bannei.settings

    Setting Value
    ABSOLUTE_URL_OVERRIDES
    {}
    ADMINS
    ()
    ADMIN_FOR
    ()
    ADMIN_MEDIA_PREFIX
    'media/'
    ALLOWED_INCLUDE_ROOTS
    ()
    APPEND_SLASH
    True
    AUTHENTICATION_BACKENDS
    ('django.contrib.auth.backends.ModelBackend',)
    AUTH_PROFILE_MODULE
    'account.Profile'
    BANNED_IPS
    ()
    BANNEI_API_URL
    'http://116.255.220.107:6081'
    CACHE_BACKEND
    'file:///media'
    CACHE_MIDDLEWARE_KEY_PREFIX
    ''
    CACHE_MIDDLEWARE_SECONDS
    600
    COMMENTS_ALLOW_PROFANITIES
    False
    COMMENTS_BANNED_USERS_GROUP
    None
    COMMENTS_FIRST_FEW
    0
    COMMENTS_MODERATORS_GROUP
    None
    COMMENTS_SKETCHY_USERS_GROUP
    None
    COURSEWARE_DIR
    '/media/bn_client_media/'
    CSRF_COOKIE_DOMAIN
    None
    CSRF_COOKIE_NAME
    'csrftoken'
    CSRF_FAILURE_VIEW
    'django.views.csrf.csrf_failure'
    DATABASES
    {'default': {'ENGINE': 'django.db.backends.mysql', 'HOST': '192.168.0.101', 'NAME': 'bannei', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'GMT-8', 'USER': 'bannei'}, 'unicom': {'ENGINE': 'django.db.backends.mysql', 'HOST': '192.168.0.101', 'NAME': 'unicom', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '3306', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'GMT-8', 'USER': 'bannei'}}
    DATABASES_CONFIG
    {'BANNEI_DEBUG': 'True', 'BANNEI_LOGIN_KEY': 'bannei_login', 'BANNEI_SESSION_COOKIE_DOMAIN': 'bannei.com', 'BANNEI_URLROOT': 'http://www.bannei.com', 'DB_BN_MASTER_HOST': '192.168.0.101', 'DB_BN_PASSWORD': '********************', 'DB_BN_PORT': '3306', 'DB_BN_SLAVE_HOST': '192.168.0.101', 'DB_BN_USER': 'bannei', 'FILE_BN_UPLOAD_KEY': 'bannei_upload', 'FILE_BN_URLROOT': 'http://file.bannei.com', 'MC_CACHE_BACKEND': 'file:///media', 'ORGAN_URLROOT': 'http://henan.bannei.com'}
    DATABASE_ENGINE
    ''
    DATABASE_HOST
    ''
    DATABASE_NAME
    ''
    DATABASE_OPTIONS
    {}
    DATABASE_PASSWORD
    '********************'
    DATABASE_PORT
    ''
    DATABASE_ROUTERS
    ['bannei.mobile.router.MobileRouter', 'bannei.unicom.router.UnicomRouter']
    DATABASE_USER
    ''
    DATETIME_FORMAT
    'N j, Y, P'
    DATETIME_INPUT_FORMATS
    ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M', '%m/%d/%y')
    DATE_FORMAT
    'N j, Y'
    DATE_INPUT_FORMATS
    ('%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y')
    DEBUG
    True
    DEBUG_PROPAGATE_EXCEPTIONS
    False
    DECIMAL_SEPARATOR
    '.'
    DEFAULT_CHARSET
    'UTF-8'
    DEFAULT_CONTENT_TYPE
    'text/html'
    DEFAULT_FILE_STORAGE
    'django.core.files.storage.FileSystemStorage'
    DEFAULT_FROM_EMAIL
    'banneiservice@gmail.com'
    DEFAULT_INDEX_TABLESPACE
    ''
    DEFAULT_TABLESPACE
    ''
    DIRNAME
    './bannei'
    DISALLOWED_USER_AGENTS
    ()
    EMAIL_BACKEND
    'django.core.mail.backends.smtp.EmailBackend'
    EMAIL_HOST
    'smtp.gmail.com'
    EMAIL_HOST_PASSWORD
    '********************'
    EMAIL_HOST_USER
    'banneiservice@gmail.com'
    EMAIL_PORT
    587
    EMAIL_SUBJECT_PREFIX
    ''
    EMAIL_USE_TLS
    True
    FILE_CHARSET
    'UTF-8'
    FILE_UPLOAD_HANDLERS
    ('django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler')
    FILE_UPLOAD_MAX_MEMORY_SIZE
    2621440
    FILE_UPLOAD_PERMISSIONS
    None
    FILE_UPLOAD_TEMP_DIR
    None
    FILE_WEB_URLROOT
    'http://file.bannei.com'
    FILTERS
    (('^homepage/(?P<object_id>\\d+)/', 'bannei.account.filter.check_valid_user'),)
    FIRST_DAY_OF_WEEK
    0
    FIXTURE_DIRS
    ()
    FORCE_SCRIPT_NAME
    None
    FORMAT_MODULE_PATH
    None
    HENAN_URLROOT
    'http://henan.bannei.com'
    HUODONG_SITE
    '/var/www/bannei/themes/huodong/'
    IGNORABLE_404_ENDS
    ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
    IGNORABLE_404_STARTS
    ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
    INSTALLED_APPS
    ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'bannei.common', 'bannei.account', 'bannei.blog', 'bannei.album', 'bannei.message', 'bannei.homepage', 'bannei.guestbook', 'bannei.poll', 'bannei.visitor', 'bannei.discussion', 'bannei.collection', 'bannei.class_space', 'bannei.school_site', 'bannei.portal', 'bannei.group', 'bannei.comment', 'bannei.newactivity', 'bannei.request', 'bannei.manage', 'bannei.invite', 'bannei.teach', 'bannei.help', 'bannei.question', 'bannei.parentschool', 'bannei.organ', 'bannei.video', 'bannei.lore', 'bannei.liaison', 'bannei.advertise', 'bannei.score', 'bannei.huodong', 'bannei.star', 'bannei.phoneschool', 'bannei.bird', 'bannei.funny', 'bannei.bank', 'bannei.directmedia', 'bannei.school_admin', 'bannei.game', 'bannei.friend', 'bannei.gonggao', 'bannei.word', 'bannei.xjcx', 'bannei.letterpaper', 'bannei.oauth', 'bannei.qiuliang']
    INTERNAL_IPS
    ()
    LANGUAGES
    (('ar', 'Arabic'), ('bg', 'Bulgarian'), ('bn', 'Bengali'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('el', 'Greek'), ('en', 'English'), ('en-gb', 'British English'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy-nl', 'Frisian'), ('ga', 'Irish'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hu', 'Hungarian'), ('id', 'Indonesian'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('nl', 'Dutch'), ('no', 'Norwegian'), ('nb', 'Norwegian Bokmal'), ('nn', 'Norwegian Nynorsk'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('uk', 'Ukrainian'), ('vi', 'Vietnamese'), ('zh-cn', 'Simplified Chinese'), ('zh-tw', 'Traditional Chinese'))
    LANGUAGES_BIDI
    ('he', 'ar', 'fa')
    LANGUAGE_CODE
    'zh-cn'
    LANGUAGE_COOKIE_NAME
    'django_language'
    LOCALE_PATHS
    ()
    LOGDIR
    './bannei/log'
    LOGFILE
    '2019-09-02-18.log'
    LOGIN_KEY_VALUE
    'bannei_login'
    LOGIN_REDIRECT_URL
    '/accounts/profile/'
    LOGIN_URL
    '/accounts/login/'
    LOGOUT_URL
    '/accounts/logout/'
    MANAGERS
    ()
    MEDIA_HTML
    './bannei/media_html'
    MEDIA_ROOT
    '/var/www/bannei/upload_media/'
    MEDIA_SITE
    './bannei/media'
    MEDIA_URL
    '/upload_media/'
    MESSAGE_STORAGE
    'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
    MIDDLEWARE_CLASSES
    ('django.middleware.common.CommonMiddleware', 'bannei.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.middleware.doc.XViewMiddleware', 'bannei.unicom.sms.middleware.AuthenticationMiddleware', 'bannei.account.middleware.AuthenticationMiddleware')
    MONTH_DAY_FORMAT
    'F j'
    NUMBER_GROUPING
    0
    OPEN_UNICOM_CITY_ID
    [190, 191, 197, 201, 204]
    PASSWORD_RESET_TIMEOUT_DAYS
    '********************'
    PREPEND_WWW
    False
    PROFANITIES_LIST
    '********************'
    ROOT_URLCONF
    'bannei.urls'
    SECRET_KEY
    '********************'
    SEND_BROKEN_LINK_EMAILS
    False
    SERVER_EMAIL
    'root@localhost'
    SESSION_COOKIE_AGE
    1209600
    SESSION_COOKIE_DOMAIN
    'bannei.com'
    SESSION_COOKIE_NAME
    'sessionid'
    SESSION_COOKIE_PATH
    '/'
    SESSION_COOKIE_SECURE
    False
    SESSION_ENGINE
    'django.contrib.sessions.backends.db'
    SESSION_EXPIRE_AT_BROWSER_CLOSE
    False
    SESSION_FILE_PATH
    None
    SESSION_SAVE_EVERY_REQUEST
    False
    SETTINGS_MODULE
    'bannei.settings'
    SHORT_DATETIME_FORMAT
    'm/d/Y P'
    SHORT_DATE_FORMAT
    'm/d/Y'
    SITE_ID
    1
    SPHINX_HOST
    '192.168.0.19'
    SPHINX_PORT
    3312
    SPHINX_SERVER
    '192.168.0.19'
    TEMPLATE_CONTEXT_PROCESSORS
    ('django.core.context_processors.auth', 'django.core.context_processors.request', 'bannei.utils.setting_process.settings', 'bannei.unicom.sms.context_process.settings')
    TEMPLATE_DEBUG
    True
    TEMPLATE_DIRS
    ('./bannei/themes', './bannei/templates')
    TEMPLATE_LOADERS
    ('django.template.loaders.filesystem.load_template_source', 'django.template.loaders.app_directories.load_template_source')
    TEMPLATE_STRING_IF_INVALID
    ''
    TEST_DATABASE_CHARSET
    None
    TEST_DATABASE_COLLATION
    None
    TEST_DATABASE_NAME
    None
    TEST_RUNNER
    'django.test.simple.DjangoTestSuiteRunner'
    THEME_SITE
    './bannei/themes'
    THOUSAND_SEPARATOR
    ','
    TIME_FORMAT
    'P'
    TIME_INPUT_FORMATS
    ('%H:%M:%S', '%H:%M')
    TIME_ZONE
    'GMT-8'
    TRANSACTIONS_MANAGED
    False
    UPLOAD_FILE_KEY_VALUE
    'bannei_upload'
    URLROOT
    'http://www.bannei.com'
    URL_VALIDATOR_USER_AGENT
    'Django/1.2.3 (http://www.djangoproject.com)'
    USE_ETAGS
    False
    USE_I18N
    True
    USE_L10N
    False
    USE_THOUSAND_SEPARATOR
    False
    YEAR_MONTH_FORMAT
    'F Y'

    You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 500 page.