9号彩票

AttributeError at /supply/152.html

'NoneType' object has no attribute 'category'
Request Method: GET
Request URL: /supply/152.html
Django Version: 1.8.3
Exception Type: AttributeError
Exception Value:
'NoneType' object has no attribute 'category'
Exception Location: ./droplets/products/views.py in get_products_by_id, line 142
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',
 '/usr/lib/python2.7/site-packages/cloud_init-0.7.6-py2.7.egg',
 '/usr/lib/python2.7/site-packages/pyocr-0.5.1-py2.7.egg',
 '/usr/lib/python2.7/site-packages/textract-1.6.1-py2.7.egg',
 '/usr/lib/python2.7/site-packages/pocketsphinx-0.1.3-py2.7-linux-x86_64.egg']
Server time: Tue, 25 Jun 2019 22:01:43 +0000

Traceback Switch to copy-and-paste view



Request inion

GET

No GET data

POST

No POST data

FILES

No FILES data

Variable Value
_vstime
'1561499630'

META

Variable Value
UWSGI_CHDIR
'/www/wwwroot/yxtiaolv.cn/droplets'
HTTP_REFERER
'/'
SCRIPT_NAME
u''
REQUEST_METHOD
'GET'
PATH_INFO
u'/supply/152.html'
SERVER_PROTOCOL
'HTTP/1.1'
QUERY_STRING
''
CONTENT_LENGTH
''
HTTP_USER_AGENT
'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2)'
HTTP_COOKIE
'_vstime=1561499630'
SERVER_NAME
'yxtiaolv.cn'
REMOTE_ADDR
'154.94.88.110'
wsgi.url_scheme
'http'
SERVER_PORT
'80'
wsgi.multiprocess
False
uwsgi.node
'izhp30zzkmku7txakwnt8dz'
DOCUMENT_ROOT
'/www/wwwroot/yxtiaolv.cn/droplets'
wsgi.input
<uwsgi._Input object at 0x33f0db0>
HTTP_HOST
'www.cdljftf.com'
wsgi.multithread
False
REQUEST_URI
'/supply/152.html'
HTTP_ACCEPT
'*/*'
wsgi.version
(1, 0)
wsgi.run_once
False
wsgi.errors
<open file 'wsgi_errors', mode 'w' at 0x2d6adb0>
REMOTE_PORT
'52763'
uwsgi.version
'2.0.15'
CONTENT_TYPE
''
wsgi.file_wrapper
''

Settings

Using settings module droplets.settings

Setting Value
SECURE_BROWSER_XSS_FILTER
False
USE_THOUSAND_SEPARATOR
False
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'en-us'
ROOT_URLCONF
'droplets.urls'
MANAGERS
()
BASE_DIR
'/www/wwwroot/yxtiaolv.cn/droplets'
SILENCED_SYSTEM_CHECKS
[]
DEFAULT_CHARSET
'utf-8'
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
STATIC_ROOT
'/www/wwwroot/yxtiaolv.cn/droplets/static/'
CKEDITOR_UPLOAD_PATH
'uploads/'
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': '',
             'NAME': 'yxtiaolv_cn',
             'OPTIONS': {},
             'PASSWORD': u'********************',
             'PORT': '',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': 'UTC',
             'USER': 'yxtiaolv_cn'}}
EMAIL_SSL_KEYFILE
u'********************'
FILE_UPLOAD_DIRECTORY_PERMISSIONS
None
SUIT_CONFIG
{'ADMIN_NAME': u'Droplets\u7f51\u7ad9\u7ba1\u7406\u7cfb\u7edf',
 'MENU': ('sites',
          {'app': 'dphome', 'label': u'\u7cfb\u7edf\u8bbe\u7f6e'},
          {'app': 'news', 'label': u'\u65b0\u95fb\u7ba1\u7406'},
          {'app': 'products', 'label': u'\u4ea7\u54c1\u7ba1\u7406'},
          {'app': 'preview', 'label': u'\u9884\u89c8\u7ba1\u7406'},
          {'app': 'seo', 'label': u'SEO\u4f18\u5316\u76f8\u5173\u8bbe\u7f6e'})}
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
LOCALE_PATHS
()
DATABASE_ROUTERS
[]
DEFAULT_TABLESPACE
''
YEAR_MONTH_FORMAT
'F Y'
STATICFILES_STORAGE
'django.contrib.staticfiles.storage.StaticFilesStorage'
CACHES
{'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
SESSION_COOKIE_PATH
'/'
EMAIL_HOST_PASSWORD
u'********************'
MEDIA_PATH
'/uploads/'
SECURE_CONTENT_TYPE_NOSNIFF
False
MIDDLEWARE_CLASSES
['django.middleware.security.SecurityMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware']
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
u'********************'
LANGUAGE_COOKIE_NAME
'django_language'
DEFAULT_INDEX_TABLESPACE
''
LOGGING_CONFIG
'logging.config.dictConfig'
CKEDITOR_JQUERY_URL
'js/jquery.min.js'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
CKEDITOR_IMAGE_BACKEND
'pillow'
FIRST_DAY_OF_WEEK
0
WSGI_APPLICATION
'droplets.wsgi.application'
TEMPLATE_DEBUG
False
X_FRAME_OPTIONS
'ALLOWALL'
CSRF_COOKIE_NAME
'csrftoken'
FORCE_SCRIPT_NAME
None
USE_X_FORWARDED_HOST
False
EMAIL_TIMEOUT
None
SECURE_SSL_HOST
None
SIGNING_BACKEND
'django.core.signing.TimestampSigner'
USE_STATIC_HTML
True
SESSION_COOKIE_SECURE
False
CSRF_COOKIE_DOMAIN
None
FILE_CHARSET
'utf-8'
DEBUG
True
LANGUAGE_COOKIE_DOMAIN
None
DEFAULT_FILE_STORAGE
'django.core.files.storage.FileSystemStorage'
INSTALLED_APPS
['suit',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.sitemaps',
 'droplets.dphome',
 'droplets.news',
 'droplets.seo',
 'droplets.ads',
 'droplets.products',
 'droplets.preview',
 'ckeditor']
LANGUAGES
(('af', 'Afrikaans'),
 ('ar', 'Arabic'),
 ('ast', 'Asturian'),
 ('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-au', 'Australian 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', 'Frisian'),
 ('ga', 'Irish'),
 ('gl', 'Galician'),
 ('he', 'Hebrew'),
 ('hi', 'Hindi'),
 ('hr', 'Croatian'),
 ('hu', 'Hungarian'),
 ('ia', 'Interlingua'),
 ('id', 'Indonesian'),
 ('io', 'Ido'),
 ('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'),
 ('mr', 'Marathi'),
 ('my', 'Burmese'),
 ('nb', 'Norwegian Bokmal'),
 ('ne', 'Nepali'),
 ('nl', 'Dutch'),
 ('nn', 'Norwegian Nynorsk'),
 ('os', 'Ossetic'),
 ('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-hans', 'Simplified Chinese'),
 ('zh-hant', 'Traditional Chinese'),
 ('zh-tw', 'Traditional Chinese'))
USE_L10N
True
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
STATICFILES_DIRS
['/www/wwwroot/yxtiaolv.cn/droplets/droplets/static']
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
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
'/www/wwwroot/yxtiaolv.cn/droplets/droplets/static/uploads'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
()
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'webmaster@localhost'
MEDIA_URL
''
DATETIME_FORMAT
'N j, Y, P'
TEMPLATE_DIRS
()
CKEDITOR_CONFIGS
{'default': {'extraPlugins': 'div,autolink,autoembed,embedsemantic,autogrow,widget,lineutils,clipboard,dialog,dialogui,elementspath',
             'skin': 'moono',
             'tabSpaces': 4,
             'toolbar': 'YourCustomToolbarConfig',
             'toolbar_Basic': [['Source', '-', 'Bold', 'Italic']],
             'toolbar_YourCustomToolbarConfig': [{'items': ['Source',
                                                            '-',
                                                            'Save',
                                                            'NewPage',
                                                            'Preview',
                                                            'Print',
                                                            '-',
                                                            'Templates'],
                                                  'name': 'document'},
                                                 {'items': ['Cut',
                                                            'Copy',
                                                            'Paste',
                                                            'PasteText',
                                                            'PasteFromWord',
                                                            '-',
                                                            'Undo',
                                                            'Redo'],
                                                  'name': 'clipboard'},
                                                 {'items': ['Find',
                                                            'Replace',
                                                            '-',
                                                            'SelectAll'],
                                                  'name': 'editing'},
                                                 {'items': ['Form',
                                                            'Checkbox',
                                                            'Radio',
                                                            'TextField',
                                                            'Textarea',
                                                            'Select',
                                                            'Button',
                                                            'ImageButton',
                                                            'HiddenField'],
                                                  'name': 'forms'},
                                                 '/',
                                                 {'items': ['Bold',
                                                            'Italic',
                                                            'Underline',
                                                            'Strike',
                                                            'Subscript',
                                                            'Superscript',
                                                            '-',
                                                            'RemoveFormat'],
                                                  'name': 'basicstyles'},
                                                 {'items': ['NumberedList',
                                                            'BulletedList',
                                                            '-',
                                                            'Outdent',
                                                            'Indent',
                                                            '-',
                                                            'Blockquote',
                                                            'CreateDiv',
                                                            '-',
                                                            'JustifyLeft',
                                                            'JustifyCenter',
                                                            'JustifyRight',
                                                            'JustifyBlock',
                                                            '-',
                                                            'BidiLtr',
                                                            'BidiRtl',
                                                            'Language'],
                                                  'name': 'paragraph'},
                                                 {'items': ['Link',
                                                            'Unlink',
                                                            'Anchor'],
                                                  'name': 'links'},
                                                 {'items': ['Image',
                                                            'Flash',
                                                            'Table',
                                                            'HorizontalRule',
                                                            'Smiley',
                                                            'SpecialChar',
                                                            'PageBreak',
                                                            'Iframe'],
                                                  'name': 'insert'},
                                                 '/',
                                                 {'items': ['Styles',
                                                            'Format',
                                                            'Font',
                                                            'FontSize'],
                                                  'name': 'styles'},
                                                 {'items': ['TextColor',
                                                            'BGColor'],
                                                  'name': 'colors'},
                                                 {'items': ['Maximize',
                                                            'ShowBlocks'],
                                                  'name': 'tools'},
                                                 {'items': ['About'],
                                                  'name': 'about'},
                                                 '/',
                                                 {'items': ['Preview',
                                                            'Maximize'],
                                                  'name': 'yourcustomtools'}],
             'update': ['Image',
                        'Update',
                        'Flash',
                        'Table',
                        'HorizontalRule',
                        'Smiley',
                        'SpecialChar',
                        'PageBreak']}}
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
LOGGING
{}
SHORT_DATE_FORMAT
'm/d/Y'
TEMPLATES
[{'APP_DIRS': True,
  'BACKEND': 'django.template.backends.django.DjangoTemplates',
  'DIRS': ['/www/wwwroot/yxtiaolv.cn/droplets/droplets/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']}}]
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.',
 'django.template.context_processors.static',
 'django.template.context_processors.tz',
 'django.contrib.messages.context_processors.messages')
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'droplets.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.

友情链接:E时彩投注  彩客彩票登陆  彩客彩票官网  5颗星彩票网  E时彩注册  彩客彩票app下载  

免责声明: 本站资料及图片来源互联网文章,本网不承担任何由内容信息所引起的争议和法律责任。所有作品版权归原创作者所有,与本站立场无关,如用户分享不慎侵犯了您的权益,请联系我们告知,我们将做删除处理!