澳门皇冠赌场网址 - 欢迎您的访问

local variable 'detail' referenced before assignment
Request Method: GET
Request URL: http://www.vidzwap.com/index/service/question/detail/47.html
Django Version: 1.9.1
Exception Type: UnboundLocalError
Exception Value:
local variable 'detail' referenced before assignment
Exception Location: /Data/websites/vidzwap.com/www/home/views.py in question_detail, line 352
Python Executable: /usr/sbin/uwsgi
Python Version: 2.7.9
Python Path:
['/Data/websites/vidzwap.com/www/',
'.',
'',
'/Data/pyenv/zhendong_jisai/lib/python27.zip',
'/Data/pyenv/zhendong_jisai/lib/python2.7',
'/Data/pyenv/zhendong_jisai/lib/python2.7/plat-linux2',
'/Data/pyenv/zhendong_jisai/lib/python2.7/lib-tk',
'/Data/pyenv/zhendong_jisai/lib/python2.7/lib-old',
'/Data/pyenv/zhendong_jisai/lib/python2.7/lib-dynload',
'/usr/lib64/python2.7',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib64/python2.7/lib-tk',
'/usr/lib/python2.7/lib-tk',
'/Data/pyenv/zhendong_jisai/lib/python2.7/site-packages']
Server time: 星期日, 20 十月 2019 17:53:17 +0000

Traceback Switch to copy-and-paste view



Request information

GET

No GET data

POST

No POST data

FILES

No FILES data

No cookie data

META

Variable Value
wsgi.multiprocess
True
SCRIPT_NAME
u''
REQUEST_METHOD
'GET'
PATH_INFO
u'/index/service/question/detail/47.html'
SERVER_PROTOCOL
'HTTP/1.1'
QUERY_STRING
''
CONTENT_LENGTH
''
HTTP_USER_AGENT
'Mozilla/5.0 (compatible; Baiduspider/2.0; +http://www.baidu.com/search/spider.html)'
SERVER_NAME
'www.vidzwap.com'
REMOTE_ADDR
'23.248.237.226'
wsgi.url_scheme
'http'
SERVER_PORT
'80'
uwsgi.node
'zddyf'
DOCUMENT_ROOT
'/Data/websites/vidzwap.com/www'
wsgi.input
<uwsgi._Input object at 0x7fa04083c8d0>
HTTP_HOST
'www.vidzwap.com'
wsgi.multithread
False
REQUEST_URI
'/index/service/question/detail/47.html'
HTTP_ACCEPT
'*/*'
wsgi.version
(1, 0)
wsgi.run_once
False
wsgi.errors
<open file 'wsgi_errors', mode 'w' at 0x7fa04083a420>
REMOTE_PORT
'50984'
uwsgi.version
'2.0.9'
CONTENT_TYPE
''
wsgi.file_wrapper
''

Settings

Using settings module jisai.settings

Setting Value
SECURE_BROWSER_XSS_FILTER
False
USE_X_FORWARDED_PORT
False
USE_THOUSAND_SEPARATOR
False
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'zh-hans'
ROOT_URLCONF
'jisai.urls'
MANAGERS
[]
BASE_DIR
'/Data/websites/vidzwap.com/www'
SILENCED_SYSTEM_CHECKS
[]
DEFAULT_CHARSET
'utf-8'
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
STATIC_ROOT
'/Data/websites/vidzwap.com/www/static'
CKEDITOR_UPLOAD_PATH
'editor/'
ALLOWED_HOSTS
[]
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
SERVER_EMAIL
'root@localhost'
SECURE_HSTS_SECONDS
0
STATICFILES_FINDERS
['django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder']
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
TIME_INPUT_FORMATS
['%H:%M:%S', '%H:%M:%S.%f', '%H:%M']
SECURE_REDIRECT_EXEMPT
[]
DATABASES
{'default': {'ATOMIC_REQUESTS': False,
'AUTOCOMMIT': True,
'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.mysql',
'HOST': 'localhost',
'NAME': 'zhendong_jisai',
'OPTIONS': {},
'PASSWORD': u'********************',
'PORT': '3306',
'TEST': {'CHARSET': None,
'COLLATION': None,
'MIRROR': None,
'NAME': None},
'TIME_ZONE': None,
'USER': 'daodi'}}
EMAIL_SSL_KEYFILE
u'********************'
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
FILE_UPLOAD_PERMISSIONS
None
FILE_UPLOAD_HANDLERS
['django.core.files.uploadhandler.MemoryFileUploadHandler',
'django.core.files.uploadhandler.TemporaryFileUploadHandler']
DEFAULT_CONTENT_TYPE
'text/html'
APPEND_SLASH
False
LOCALE_PATHS
['/Data/websites/vidzwap.com/www/locale']
DATABASE_ROUTERS
[]
DEFAULT_TABLESPACE
''
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': '/Data/websites/vidzwap.com/www/cache',
'OPTIONS': {'MAX_ENTRIES': 1000},
'TIMEOUT': 600}}
SESSION_COOKIE_PATH
'/'
EMAIL_HOST_PASSWORD
u'********************'
SECURE_CONTENT_TYPE_NOSNIFF
False
MIDDLEWARE_CLASSES
['django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'libs.middleware.language.CheckLanguageMiddleware']
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
u'********************'
LANGUAGE_COOKIE_NAME
'language'
DEFAULT_INDEX_TABLESPACE
''
LOGGING_CONFIG
'logging.config.dictConfig'
CKEDITOR_JQUERY_URL
'/static/js/jquery.js'
TEMPLATE_LOADERS
['django.template.loaders.filesystem.Loader',
'django.template.loaders.app_directories.Loader']
FIRST_DAY_OF_WEEK
0
WSGI_APPLICATION
'jisai.wsgi.application'
SERVER_TAG
'online'
TEMPLATE_DEBUG
False
X_FRAME_OPTIONS
'SAMEORIGIN'
CSRF_COOKIE_NAME
'csrftoken'
FORCE_SCRIPT_NAME
None
USE_X_FORWARDED_HOST
False
CSRF_HEADER_NAME
'HTTP_X_CSRFTOKEN'
EMAIL_TIMEOUT
None
SECURE_SSL_HOST
None
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE
False
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
CSRF_TRUSTED_ORIGINS
[]
LANGUAGE_COOKIE_DOMAIN
None
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'home',
'ckeditor',
'ckeditor_uploader']
LANGUAGES
[('zh-hans', '\xe4\xb8\xad\xe6\x96\x87'), ('en-us', 'English')]
USE_L10N
True
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
STATICFILES_DIRS
(('css', '/Data/websites/vidzwap.com/www/static/css'),
('js', '/Data/websites/vidzwap.com/www/static/js'),
('img', '/Data/websites/vidzwap.com/www/static/img'))
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
LANGUAGE_COOKIE_AGE
None
SESSION_COOKIE_HTTPONLY
True
DEBUG_PROPAGATE_EXCEPTIONS
False
CSRF_COOKIE_AGE
31449600
MONTH_DAY_FORMAT
'F j'
LOGIN_URL
'/accounts/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
UPLOAD_TO
'images/%Y/%m/'
TIME_FORMAT
'P'
AUTH_USER_MODEL
'auth.User'
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']
AUTHENTICATION_BACKENDS
['django.contrib.auth.backends.ModelBackend']
AUTH_PASSWORD_VALIDATORS
u'********************'
PASSWORD_RESET_TIMEOUT_DAYS
u'********************'
SESSION_FILE_PATH
None
CACHE_MIDDLEWARE_ALIAS
'default'
SESSION_SAVE_EVERY_REQUEST
False
NUMBER_GROUPING
0
SESSION_ENGINE
'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH
'/'
LOGIN_REDIRECT_URL
'/accounts/profile/'
DECIMAL_SEPARATOR
'.'
IGNORABLE_404_URLS
[]
MIGRATION_MODULES
{}
TEMPLATE_STRING_IF_INVALID
''
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
FIXTURE_DIRS
[]
EMAIL_HOST
'localhost'
DATE_FORMAT
'N j, Y'
MEDIA_ROOT
'/Data/websites/vidzwap.com/www/media'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
[]
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
MEDIA_URL
'/media/'
DATETIME_FORMAT
'N j, Y, P'
TEMPLATE_DIRS
[]
CKEDITOR_CONFIGS
{'default': {'toolbar': 'Custom',
'toolbar_Custom': [['Bold', 'Italic', 'Underline'],
['NumberedList',
'BulletedList',
'-',
'Outdent',
'Indent',
'-',
'JustifyLeft',
'JustifyCenter',
'JustifyRight',
'JustifyBlock'],
['Link', 'Unlink'],
['RemoveFormat', 'Source'],
{'items': ['Styles',
'Format',
'Font',
'FontSize',
'TextColor'],
'name': 'styles'},
{'items': ['Image',
'Flash',
'Table',
'HorizontalRule',
'Smiley',
'SpecialChar',
'PageBreak',
'Iframe'],
'name': 'insert'}]}}
DISALLOWED_USER_AGENTS
[]
ALLOWED_INCLUDE_ROOTS
[]
LOGGING
{}
SHORT_DATE_FORMAT
'm/d/Y'
TEMPLATES
[{'APP_DIRS': True,
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': ['/Data/websites/vidzwap.com/www/templates'],
'OPTIONS': {'context_processors': ['django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.i18n']}}]
TEST_RUNNER
'django.test.runner.DiscoverRunner'
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
SECURE_SSL_REDIRECT
False
TIME_ZONE
'UTC'
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_SSL
False
TEMPLATE_CONTEXT_PROCESSORS
['django.contrib.auth.context_processors.auth',
'django.template.context_processors.debug',
'django.template.context_processors.i18n',
'django.template.context_processors.media',
'django.template.context_processors.static',
'django.template.context_processors.tz',
'django.contrib.messages.context_processors.messages']
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'jisai.settings'
USE_ETAGS
False
LANGUAGES_BIDI
['he', 'ar', 'fa', 'ur']
FILE_UPLOAD_TEMP_DIR
None
INTERNAL_IPS
[]
STATIC_URL
'/static/'
EMAIL_PORT
25
USE_TZ
True
SHORT_DATETIME_FORMAT
'm/d/Y P'
TEST_NON_SERIALIZED_APPS
[]
PASSWORD_HASHERS
u'********************'
ABSOLUTE_URL_OVERRIDES
{}
LANGUAGE_COOKIE_PATH
'/'
CACHE_MIDDLEWARE_SECONDS
600
EMAIL_SSL_CERTFILE
None
CSRF_COOKIE_HTTPONLY
False
DATETIME_INPUT_FORMATS
['%Y-%m-%d %H:%M:%S',
'%Y-%m-%d %H:%M:%S.%f',
'%Y-%m-%d %H:%M',
'%Y-%m-%d',
'%m/%d/%Y %H:%M:%S',
'%m/%d/%Y %H:%M:%S.%f',
'%m/%d/%Y %H:%M',
'%m/%d/%Y',
'%m/%d/%y %H:%M:%S',
'%m/%d/%y %H:%M:%S.%f',
'%m/%d/%y %H:%M',
'%m/%d/%y']
EMAIL_HOST_USER
''

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 page generated by the handler for this status code.