OperationalError at /second/

(2003, "Can't connect to MySQL server on '127.0.0.1' (10061)")
Request Method: GET
Request URL: /second/?code=100107&categoryId=10010701
Django Version: 1.3
Exception Type: OperationalError
Exception Value:
(2003, "Can't connect to MySQL server on '127.0.0.1' (10061)")
Exception Location: C:\Python27\lib\site-packages\MySQLdb\connections.py in __init__, line 187
Python Executable: C:\Program Files\Apache Software Foundation\Apache2.2\bin\httpd.exe
Python Version: 2.7.2
Python Path:
['C:\\gsiworld\\GSIWORLD\\src',
 'C:\\Python27\\lib\\site-packages\\distribute-0.6.14-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\pyamf-0.6.1-py2.7-win32.egg',
 'C:\\Python27\\lib\\site-packages\\zsi-2.1_a1-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\twisted-12.2.0-py2.7-win32.egg',
 'C:\\Python27\\lib\\site-packages\\zope.interface-4.0.5-py2.7-win32.egg',
 'C:\\Python27\\lib\\site-packages\\ez_setup-0.9-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\virtualenv-1.9.1-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\pytz-2013b-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\suds-0.4-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\wstools-0.4.3-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\fpconst-0.7.2-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\docutils-0.10-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\soappy-0.12.5-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\soaplib-2.0.0_beta2-py2.7.egg',
 'C:\\Python27\\lib\\site-packages\\django_mssql-1.2-py2.7.egg',
 'C:\\WINDOWS\\system32\\python27.zip',
 'C:\\Python27\\DLLs',
 'C:\\Python27\\lib',
 'C:\\Python27\\lib\\plat-win',
 'C:\\Python27\\lib\\lib-tk',
 'C:\\Program Files\\Apache Software Foundation\\Apache2.2\\bin',
 'C:\\Python27',
 'C:\\Python27\\lib\\site-packages',
 'C:\\Python27\\lib\\site-packages\\PIL',
 'C:\\Python27\\lib\\site-packages\\win32',
 'C:\\Python27\\lib\\site-packages\\win32\\lib',
 'C:\\Python27\\lib\\site-packages\\Pythonwin']
Server time: , 20 2019 20:24:59 +0800

Traceback Switch to copy-and-paste view



Request information

GET

Variable Value
code
u'100107'
categoryId
u'10010701'

POST

No POST data

FILES

No FILES data

Variable Value
_vstime
'1563625473'

META

Variable Value
wsgi.multiprocess
False
HTTP_COOKIE
'_vstime=1563625473'
SERVER_PROTOCOL
'HTTP/1.1'
SERVER_SOFTWARE
'Apache/2.2.19 (Win32) mod_ssl/2.2.19 OpenSSL/0.9.8r mod_wsgi/3.3 Python/2.7.2 mod_h264_streaming/2.2.7'
SCRIPT_NAME
u''
mod_wsgi.handler_script
''
SERVER_SIGNATURE
''
REQUEST_METHOD
'GET'
PATH_INFO
u'/second/'
SystemRoot
'C:\\WINDOWS'
QUERY_STRING
'code=100107&categoryId=10010701'
HTTP_USER_AGENT
'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2)'
HTTP_REFERER
'/'
SERVER_NAME
'www.gsiworld.com.cn'
REMOTE_ADDR
'198.44.162.186'
mod_wsgi.request_handler
'wsgi-script'
wsgi.url_scheme
'http'
PATH_TRANSLATED
'C:\\gsiworld\\GSIWORLD\\src\\GSIWORLD\\django.wsgi\\second\\'
SERVER_PORT
'80'
mod_wsgi.version
(3, 3)
mod_wsgi.input_chunked
'0'
SERVER_ADDR
'172.17.57.226'
DOCUMENT_ROOT
'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs'
mod_wsgi.process_group
''
COMSPEC
'C:\\WINDOWS\\system32\\cmd.exe'
SCRIPT_FILENAME
'C:/gsiworld/GSIWORLD/src/GSIWORLD/django.wsgi'
SERVER_ADMIN
'hql@gsiworld.com.cn'
wsgi.input
<mod_wsgi.Input object at 0x06E99D40>
HTTP_HOST
'www.gsiworld.com.cn'
mod_wsgi.callable_object
'application'
wsgi.multithread
True
PATHEXT
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
REQUEST_URI
'/second/?code=100107&categoryId=10010701'
HTTP_ACCEPT
'*/*'
WINDIR
'C:\\WINDOWS'
wsgi.version
(1, 1)
GATEWAY_INTERFACE
'CGI/1.1'
wsgi.run_once
False
wsgi.errors
<mod_wsgi.Log object at 0x06366EF8>
REMOTE_PORT
'56622'
mod_wsgi.application_group
'172.17.57.226|'
mod_wsgi.script_reloading
'1'
wsgi.file_wrapper
''
CSRF_COOKIE
'0bc95e89d4d17d490e37fbc4abf2d08e'

Settings

Using settings module GSIWORLD.settings

Setting Value
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
LANGUAGE_CODE
'zh-cn'
ROOT_URLCONF
'GSIWORLD.urls'
MANAGERS
()
DEFAULT_CHARSET
'utf-8'
STATIC_ROOT
''
TEST_DATABASE_CHARSET
None
MESSAGE_STORAGE
'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
DATABASE_HOST
''
IGNORABLE_404_STARTS
('/cgi-bin/', '/_vti_bin', '/_vti_inf')
SEND_BROKEN_LINK_EMAILS
False
URL_VALIDATOR_USER_AGENT
'Django/1.3 (http://www.djangoproject.com)'
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
SESSION_COOKIE_DOMAIN
None
SESSION_COOKIE_NAME
'sessionid'
COMMENTS_MODERATORS_GROUP
None
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
DATABASES
{'default': {'ENGINE': 'django.db.backends.mysql',
             'HOST': '127.0.0.1',
             'NAME': 'gsiworld',
             'OPTIONS': {},
             'PASSWORD': '********************',
             'PORT': '3306',
             'TEST_CHARSET': None,
             'TEST_COLLATION': None,
             'TEST_MIRROR': None,
             'TEST_NAME': None,
             'TIME_ZONE': 'Asia/Shanghai',
             'USER': 'root'}}
TEST_DATABASE_NAME
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
True
FIRST_DAY_OF_WEEK
0
DATABASE_ROUTERS
[]
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
             'LOCATION': ''}}
SERVER_EMAIL
'root@localhost'
SESSION_COOKIE_PATH
'/'
IGNORABLE_404_ENDS
('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon1.ico', '.php')
MIDDLEWARE_CLASSES
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.csrf.CsrfResponseMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware')
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
'********************'
LANGUAGE_COOKIE_NAME
'django_language'
FILE_UPLOAD_TEMP_DIR
None
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
'django.utils.log.dictConfig'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
TEMPLATE_DEBUG
True
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
TEST_DATABASE_COLLATION
None
FORCE_SCRIPT_NAME
None
CACHE_BACKEND
'locmem://'
SESSION_COOKIE_SECURE
False
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
SESSION_FILE_PATH
None
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'GSIWORLD.message',
 'GSIWORLD.users',
 'GSIWORLD.role',
 'GSIWORLD.menu',
 'GSIWORLD.customer',
 'GSIWORLD.announcement',
 'GSIWORLD.bbs']
LANGUAGES
(('ar', 'Arabic'),
 ('az', 'Azerbaijani'),
 ('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'),
 ('es-mx', 'Mexican Spanish'),
 ('es-ni', 'Nicaraguan 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'),
 ('pa', 'Punjabi'),
 ('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'),
 ('ur', 'Urdu'),
 ('vi', 'Vietnamese'),
 ('zh-cn', 'Simplified Chinese'),
 ('zh-tw', 'Traditional Chinese'))
DATABASE_ENGINE
''
DATABASE_NAME
''
COMMENTS_FIRST_FEW
0
PREPEND_WWW
False
SESSION_COOKIE_HTTPONLY
False
DATABASE_PORT
''
DEBUG_PROPAGATE_EXCEPTIONS
False
MONTH_DAY_FORMAT
'F j'
LOGIN_URL
'/accounts/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
True
TIME_FORMAT
'P'
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')
CSRF_COOKIE_NAME
'csrftoken'
EMAIL_HOST_PASSWORD
'********************'
PASSWORD_RESET_TIMEOUT_DAYS
'********************'
CACHE_MIDDLEWARE_ALIAS
'default'
SESSION_SAVE_EVERY_REQUEST
False
ADMIN_MEDIA_PREFIX
'/static/admin/'
NUMBER_GROUPING
0
SESSION_ENGINE
'django.contrib.sessions.backends.db'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
COMMENTS_SKETCHY_USERS_GROUP
None
LOGIN_REDIRECT_URL
'/accounts/profile/'
LOGGING
{'disable_existing_loggers': False,
 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
                              'level': 'ERROR'}},
 'loggers': {'django.request': {'handlers': ['mail_admins'],
                                'level': 'ERROR',
                                'propagate': True}},
 'version': 1}
CACHE_MIDDLEWARE_KEY_PREFIX
''
LOCALE_PATHS
()
TEMPLATE_STRING_IF_INVALID
''
COMMENTS_ALLOW_PROFANITIES
False
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
TEMPLATE_DIRS
('C:/gsiworld/GSIWORLD/src/GSIWORLD/templates',)
FIXTURE_DIRS
()
EMAIL_HOST
'smtp.exmail.qq.com'
DATE_FORMAT
'N j, Y'
MEDIA_ROOT
'C:/gsiworld/GSIWORLD/src/GSIWORLD/templates/upload/'
ADMINS
()
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
STATICFILES_DIRS
()
MEDIA_URL
''
DATETIME_FORMAT
'N j, Y, P'
EMAIL_SUBJECT_PREFIX
'[Django] '
SITE_ID
1
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
DECIMAL_SEPARATOR
'.'
SHORT_DATE_FORMAT
'm/d/Y'
DATABASE_USER
''
TEST_RUNNER
'django.test.simple.DjangoTestSuiteRunner'
TIME_ZONE
'Asia/Shanghai'
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
DEFAULT_TABLESPACE
''
TEMPLATE_CONTEXT_PROCESSORS
('django.contrib.auth.context_processors.auth',
 'django.core.context_processors.debug',
 'django.core.context_processors.i18n',
 'django.core.context_processors.media',
 'django.core.context_processors.static',
 'django.contrib.messages.context_processors.messages')
SESSION_COOKIE_AGE
1209600
EMAIL_HOST_LISTEN
25
SETTINGS_MODULE
'GSIWORLD.settings'
USE_ETAGS
False
LANGUAGES_BIDI
('he', 'ar', 'fa')
DEFAULT_INDEX_TABLESPACE
''
INTERNAL_IPS
()
STATIC_URL
'/static/'
EMAIL_PORT
25
SHORT_DATETIME_FORMAT
'm/d/Y P'
ABSOLUTE_URL_OVERRIDES
{}
DATABASE_OPTIONS
{}
CACHE_MIDDLEWARE_SECONDS
600
BANNED_IPS
()
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')
DATABASE_PASSWORD
'********************'
ADMIN_FOR
()
COMMENTS_BANNED_USERS_GROUP
None
EMAIL_HOST_USER
'help@gsiworld.com.cn'
PROFANITIES_LIST
'********************'

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.