OperationalError at /jiaoyou/

(1045, "Access denied for user 'apinanhunnvjia'@'localhost' (using password: YES)")
Request Method: GET
Request URL: /jiaoyou/
Django Version: 1.5.1
Exception Type: OperationalError
Exception Value:
(1045, "Access denied for user 'apinanhunnvjia'@'localhost' (using password: YES)")
Exception Location: /imofang/webenv/wed-env/local/lib/python2.7/site-packages/MySQLdb/connections.py in __init__, line 193
Python Executable: /imofang/webenv/wed-env/bin/python
Python Version: 2.7.6
Python Path:
['/imofang/webenv/wed-env/wedding',
 '/imofang/webenv/wed-env/lib/python2.7',
 '/imofang/webenv/wed-env/lib/python2.7/plat-x86_64-linux-gnu',
 '/imofang/webenv/wed-env/lib/python2.7/lib-tk',
 '/imofang/webenv/wed-env/lib/python2.7/lib-old',
 '/imofang/webenv/wed-env/lib/python2.7/lib-dynload',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/imofang/webenv/wed-env/local/lib/python2.7/site-packages',
 '/imofang/webenv/wed-env/lib/python2.7/site-packages']
Server time: 星期三, 30 一月 2019 12:33:32 +0800

Error during template rendering

In template /imofang/webenv/wed-env/wedding/templates/t2013/jiaoyou/jiaoyou.html, error at line 171

1045

161 </li>
162 {% endfor %}
163
164 </ul>
165 {% endif %}
166
167
168 <ul class="spPhotoList clearfix bangTab01-bd bangTab01-bd01" {% if so%} style="display: none;"{% else %} style="display: block;"{% endif %} >
169
170
171 {% for i in relist %}
172 <li class="user-brief">
173 <a href="/jiaoyou/jiaoyou_{{i.id}}.html">
174 <img src="{{i.get_touxiang}}" width="110" height="150">
175 </a>
176 <ul class="info">
177 <li><i class="icon-user"></i>{{i.shenggao}}cm</li>
178 <li><i class="icon-home"></i>{{i.goufang}}</li>
179 </ul>
180 <div class="city">所在区域<br/>{{i.diqu}}</div>
181 </li>

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
HTTP_REFERER
'/jiaoyou/'
SCRIPT_NAME
u''
REQUEST_METHOD
'GET'
PATH_INFO
u'/jiaoyou/'
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.nanhunnvjia.com'
REMOTE_ADDR
'172.246.174.242'
HTTP_CLIENT_IP
'96.199.90.213'
wsgi.url_scheme
'http'
SERVER_PORT
'80'
wsgi.input
<flup.server.fcgi_base.InputStream object at 0x7f11faf1e650>
HTTP_HOST
'www.nanhunnvjia.com'
wsgi.multithread
True
HTTP_ACCEPT
'*/*'
wsgi.version
(1, 0)
HTTP_X_FORWARDED_FOR
'96.199.90.213'
wsgi.errors
<flup.server.fcgi_base.TeeOutputStream object at 0x7f11fae2c590>
wsgi.multiprocess
False
wsgi.run_once
False
CONTENT_TYPE
''

Settings

Using settings module wedding.settings

Setting Value
USE_L10N
True
USE_THOUSAND_SEPARATOR
False
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'zh_cn'
ROOT_URLCONF
'wedding.urls'
MANAGERS
(('1', 'mydjango@gmail.com'),)
DEFAULT_CHARSET
'utf-8'
STATIC_ROOT
'/imofang/webenv/wed-env/wedding/static/'
IS_CACHE_ON
True
ALLOWED_HOSTS
['.hunshow.net',
 '.hunshow.com',
 '.imofang.com',
 '.80aphoto.com',
 '.50uu.com',
 '.dazhengzhou.com',
 '.lzmhq.com',
 '.chuse371.com',
 '.1000wedding.com',
 '.hnqianshou.com',
 '.vi-studio.com',
 '.zzyzphoto.com',
 '.371love.com',
 '.hunshow.com',
 '.sinai-photo.com',
 '.cnbacio.com',
 '.timesfilm.com',
 '.nanhunnvjia.com',
 '.baoyichina.cn',
 '.minuo-vision.com',
 '.nannvhunjia.com']
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
FILE_UPLOAD_PERMISSIONS
None
STATICFILES_FINDERS
('django.contrib.staticfiles.finders.FileSystemFinder',
 'django.contrib.staticfiles.finders.AppDirectoriesFinder')
SESSION_CACHE_ALIAS
'default'
SESSION_COOKIE_DOMAIN
'nanhunnvjia.com'
SESSION_COOKIE_NAME
'sessionid'
THUMBNAIL_ALIASES
{'': {'service_album': {'crop': True, 'size': (210, 210)}}}
ADMIN_FOR
()
TIME_INPUT_FORMATS
('%H:%M:%S', '%H:%M')
DATABASES
{'default': {'ENGINE': 'django.db.backends.mysql',
             'HOST': '',
             'NAME': 'newwedding',
             'OPTIONS': {},
             'PASSWORD': u'********************',
             'PORT': '',
             'TEST_CHARSET': None,
             'TEST_COLLATION': None,
             'TEST_MIRROR': None,
             'TEST_NAME': None,
             'TIME_ZONE': 'UTC',
             'USER': 'newwedding'},
 'jiaoyou': {'ENGINE': 'django.db.backends.mysql',
             'HOST': '',
             'NAME': 'apinanhunnvjia',
             'OPTIONS': {},
             'PASSWORD': u'********************',
             'PORT': '',
             'TEST_CHARSET': None,
             'TEST_COLLATION': None,
             'TEST_MIRROR': None,
             'TEST_NAME': None,
             'TIME_ZONE': 'UTC',
             'USER': 'apinanhunnvjia'}}
SERVER_EMAIL
'root@localhost'
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
['wedding.dbsettings.appdb']
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
             'LOCATION': '127.0.0.1:11211'}}
SESSION_COOKIE_PATH
'/'
USE_X_FORWARDED_HOST
False
THUMBNAIL_PREFIX
'th_'
MIDDLEWARE_CLASSES
('wedding.apps.utils.www.MyCommonMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'wedding.apps.utils.sitemiddle.BaseSafe',
 'pagination.middleware.PaginationMiddleware',
 'wedding.apps.utils.middleware.UrlLogMiddleware',
 'wedding.apps.utils.middleware.ManageFilter',
 'wedding.apps.utils.middleware.WsiteFilter')
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
u'********************'
LANGUAGE_COOKIE_NAME
'django_language'
DEFAULT_INDEX_TABLESPACE
''
TRANSACTIONS_MANAGED
False
LOGGING_CONFIG
'django.utils.log.dictConfig'
SEND_BROKEN_LINK_EMAILS
False
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
WSGI_APPLICATION
'wedding.wsgi.application'
TEMPLATE_DEBUG
True
X_FRAME_OPTIONS
'SAMEORIGIN'
AUTHENTICATION_BACKENDS
('django.contrib.auth.backends.ModelBackend',)
FORCE_SCRIPT_NAME
None
CACHE_BACKEND
'memcached://127.0.0.1:11211/'
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
SESSION_COOKIE_SECURE
False
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
SESSION_FILE_PATH
'/imofang/website/wedding/session_temp/'
DEFAULT_FILE_STORAGE
'wedding.apps.utils.storage.CustomStorage'
INSTALLED_APPS
('easy_thumbnails',
 'wedding.apps.jiaoyou',
 'wedding.apps.huafei',
 'wedding.apps.baiwan',
 'wedding.apps.newinfo',
 'wedding.apps.baike',
 'wedding.apps.ask',
 'wedding.apps.allinfo',
 'wedding.apps.sms',
 'wedding.apps.service',
 'wedding.apps.hotel',
 'wedding.apps.tehui',
 'wedding.apps.base',
 'wedding.apps.bbs',
 'wedding.apps.goodinfo',
 'wedding.apps.link',
 'wedding.apps.goto',
 'wedding.apps.video',
 'wedding.apps.show',
 'wedding.apps.bbs',
 'wedding.apps.convert',
 'wedding.apps.m',
 'wedding.apps.active',
 'wedding.apps.inspiration',
 'wedding.apps.userinfo',
 'wedding.apps.vipinfo',
 'wedding.apps.kefuinfo',
 'wedding.apps.weixin',
 'wedding.apps.weibo',
 'wedding.apps.zhuanti',
 'wedding.apps.hungou',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.admin',
 'tagging',
 'captcha',
 'pagination')
LANGUAGES
(('af', 'Afrikaans'),
 ('ar', 'Arabic'),
 ('az', 'Azerbaijani'),
 ('bg', 'Bulgarian'),
 ('be', 'Belarusian'),
 ('bn', 'Bengali'),
 ('br', 'Breton'),
 ('bs', 'Bosnian'),
 ('ca', 'Catalan'),
 ('cs', 'Czech'),
 ('cy', 'Welsh'),
 ('da', 'Danish'),
 ('de', 'German'),
 ('el', 'Greek'),
 ('en', 'English'),
 ('en-gb', 'British English'),
 ('eo', 'Esperanto'),
 ('es', 'Spanish'),
 ('es-ar', 'Argentinian Spanish'),
 ('es-mx', 'Mexican Spanish'),
 ('es-ni', 'Nicaraguan Spanish'),
 ('es-ve', 'Venezuelan 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'),
 ('ia', 'Interlingua'),
 ('id', 'Indonesian'),
 ('is', 'Icelandic'),
 ('it', 'Italian'),
 ('ja', 'Japanese'),
 ('ka', 'Georgian'),
 ('kk', 'Kazakh'),
 ('km', 'Khmer'),
 ('kn', 'Kannada'),
 ('ko', 'Korean'),
 ('lb', 'Luxembourgish'),
 ('lt', 'Lithuanian'),
 ('lv', 'Latvian'),
 ('mk', 'Macedonian'),
 ('ml', 'Malayalam'),
 ('mn', 'Mongolian'),
 ('nb', 'Norwegian Bokmal'),
 ('ne', 'Nepali'),
 ('nl', 'Dutch'),
 ('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'),
 ('sw', 'Swahili'),
 ('ta', 'Tamil'),
 ('te', 'Telugu'),
 ('th', 'Thai'),
 ('tr', 'Turkish'),
 ('tt', 'Tatar'),
 ('udm', 'Udmurt'),
 ('uk', 'Ukrainian'),
 ('ur', 'Urdu'),
 ('vi', 'Vietnamese'),
 ('zh-cn', 'Simplified Chinese'),
 ('zh-tw', 'Traditional Chinese'))
COMMENTS_ALLOW_PROFANITIES
False
WSITE_TEMPLATE_ROOT
'twsite'
SITE_MAIN
''
PREPEND_WWW
False
SECURE_PROXY_SSL_HEADER
None
SESSION_COOKIE_HTTPONLY
True
DEBUG_PROPAGATE_EXCEPTIONS
False
MONTH_DAY_FORMAT
'F j'
LOGIN_URL
'/accounts/login/'
SESSION_EXPIRE_AT_BROWSER_CLOSE
False
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')
CSRF_COOKIE_NAME
'csrftoken'
EMAIL_HOST_PASSWORD
u'********************'
PASSWORD_RESET_TIMEOUT_DAYS
u'********************'
CACHE_MIDDLEWARE_ALIAS
'default'
SESSION_SAVE_EVERY_REQUEST
False
NUMBER_GROUPING
0
SESSION_ENGINE
'django.contrib.sessions.backends.cache'
CSRF_FAILURE_VIEW
'django.views.csrf.csrf_failure'
CSRF_COOKIE_PATH
'/'
LOGIN_REDIRECT_URL
'/accounts/profile/'
DECIMAL_SEPARATOR
'.'
IGNORABLE_404_URLS
()
LOCALE_PATHS
()
TEMPLATE_STRING_IF_INVALID
''
LOGOUT_URL
'/accounts/logout/'
EMAIL_USE_TLS
False
FIXTURE_DIRS
()
EMAIL_HOST
'localhost'
DATE_FORMAT
'N j, Y'
MEDIA_ROOT
'/imofang/webenv/wed-env/media/'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
(('1', 'mydjango@gmail.com'),)
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
STATICFILES_DIRS
('/imofang/webenv/wed-env/wedding/site_static/',)
MEDIA_URL
'/smedia/'
DATETIME_FORMAT
'N j, Y, P'
TEMPLATE_DIRS
('/imofang/webenv/wed-env/wedding/templates/',)
THUMBNAIL_BASEDIR
'thumb'
SITE_ID
1
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
LOGGING
{'disable_existing_loggers': False,
 'filters': {'require_debug_false': {'()': 'django.utils.log.RequireDebugFalse'}},
 'handlers': {'mail_admins': {'class': 'django.utils.log.AdminEmailHandler',
                              'filters': ['require_debug_false'],
                              'level': 'ERROR'}},
 'loggers': {'django.request': {'handlers': ['mail_admins'],
                                'level': 'ERROR',
                                'propagate': True}},
 'version': 1}
SHORT_DATE_FORMAT
'm/d/Y'
TEST_RUNNER
'django.test.simple.DjangoTestSuiteRunner'
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
TIME_ZONE
'Asia/Shanghai'
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
DEFAULT_TABLESPACE
''
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.request',
 'django.contrib.auth.context_processors.auth')
THUMBNAIL_DEBUG
True
SESSION_COOKIE_AGE
172800
SETTINGS_MODULE
'wedding.settings'
USE_ETAGS
False
LANGUAGES_BIDI
('he', 'ar', 'fa')
FILE_UPLOAD_TEMP_DIR
None
INTERNAL_IPS
()
STATIC_URL
'/static/'
EMAIL_PORT
25
USE_TZ
True
SHORT_DATETIME_FORMAT
'm/d/Y P'
PASSWORD_HASHERS
u'********************'
ABSOLUTE_URL_OVERRIDES
{}
TEMPLATE_ROOT
't2013'
CACHE_MIDDLEWARE_SECONDS
3600
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
''
PROFANITIES_LIST
u'********************'

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.