WPS升级后欢迎窗口报错信息,窥一下

阿拉法政 发布于 2011/06/18 06:23
阅读 435
收藏 0

ViewDoesNotExist at /xweb/launcher2/
Tried launcher2 in module src.launcher.views. Error was: 'module' object has no attribute 'launcher2'Request Method: GET
Request URL: http://k.wps.cn/xweb/launcher2/
Django Version: 1.2.3
Exception Type: ViewDoesNotExist
Exception Value: Tried launcher2 in module src.launcher.views. Error was: 'module' object has no attribute 'launcher2'
Exception Location: /usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/urlresolvers.py in _get_callback, line 135
Python Executable: /usr/local/python/bin/python2.6
Python Version: 2.6.6
Python Path: ['/data/app/xliveguide', '/usr/local/python/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg', '/usr/local/python/lib/python2.6/site-packages/PIL-1.1.7-py2.6-linux-x86_64.egg', '/usr/local/python/lib/python2.6/site-packages/MySQL_python-1.2.3-py2.6-linux-x86_64.egg', '/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg', '/usr/local/python/lib/python2.6/site-packages/flup-1.0.3.dev_20100525-py2.6.egg', '/usr/local/python/lib/python2.6/site-packages/pycrypto-2.3-py2.6-linux-x86_64.egg', '/usr/local/python/lib/python2.6/site-packages/pylibmc-1.1.1-py2.6-linux-x86_64.egg', '/usr/local/python/lib/python26.zip', '/usr/local/python/lib/python2.6', '/usr/local/python/lib/python2.6/plat-linux2', '/usr/local/python/lib/python2.6/lib-tk', '/usr/local/python/lib/python2.6/lib-old', '/usr/local/python/lib/python2.6/lib-dynload', '/usr/local/python/lib/python2.6/site-packages']
Server time: Sat, 18 Jun 2011 06:19:55 +0800

Traceback Switch to copy-and-paste view
/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py in get_response
                if hasattr(request, "urlconf"):                    # Reset url resolver with a custom urlconf.                    urlconf = request.urlconf                    urlresolvers.set_urlconf(urlconf)                    resolver = urlresolvers.RegexURLResolver(r'^/', urlconf)                callback, callback_args, callback_kwargs = resolver.resolve(                        request.path_info) ...                # Apply view middleware                for middleware_method in self._view_middleware:                    response = middleware_method(request, callback, callback_args, callback_kwargs)                    if response:                        return response? Local vars
Variable Value
exceptions <module 'django.core.exceptions' from '/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/exceptions.pyc'>
middleware_method <bound method AuthenticationMiddleware.process_request of <django.contrib.auth.middleware.AuthenticationMiddleware object at 0x1c2ed810>>
receivers [(<function _rollback_on_exception at 0x1bbebde8>, None)]
request <WSGIRequest GET:<QueryDict: {}>, POST:<QueryDict: {}>, COOKIES:{}, META:{'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'DOCUMENT_ROOT': '/usr/local/nginx/html', 'DOCUMENT_URI': '/xweb/launcher2/', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': '*/*', 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'zh-cn', 'HTTP_CONNECTION': 'Keep-Alive', 'HTTP_HOST': 'k.wps.cn', 'HTTP_USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)', 'PATH_INFO': u'/xweb/launcher2/', 'QUERY_STRING': '', 'REMOTE_ADDR': '60.209.124.214', 'REMOTE_PORT': '18963', 'REQUEST_METHOD': 'GET', 'REQUEST_URI': '/xweb/launcher2/', 'SCRIPT_NAME': u'', 'SERVER_ADDR': '172.16.2.58', 'SERVER_NAME': 'k.wps.cn', 'SERVER_PORT': '80', 'SERVER_PROTOCOL': 'HTTP/1.1', 'SERVER_SOFTWARE': 'nginx/0.8.9', 'wsgi.errors': <flup.server.fcgi_base.TeeOutputStream object at 0x2aaaac0a61d0>, 'wsgi.input': <flup.server.fcgi_base.InputStream object at 0x2aaaac0a6dd0>, 'wsgi.multiprocess': True, 'wsgi.multithread': False, 'wsgi.run_once': False, 'wsgi.url_scheme': 'http', 'wsgi.version': (1, 0)}>
resolver <RegexURLResolver urls (None:None) ^/>
response None
self <django.core.handlers.wsgi.WSGIHandler object at 0x1c458bd0>
settings <django.conf.LazySettings object at 0x2ac450669f90>
urlconf 'urls'
urlresolvers <module 'django.core.urlresolvers' from '/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/urlresolvers.pyc'>

/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/urlresolvers.py in resolve
    def resolve(self, path):        tried = []        match = self.regex.search(path)        if match:            new_path = path[match.end():]            for pattern in self.url_patterns:                try:                    sub_match = pattern.resolve(new_path) ...                except Resolver404, e:                    sub_tried = e.args[0].get('tried')                    if sub_tried is not None:                        tried.extend([(pattern.regex.pattern + '   ' + t) for t in sub_tried])                    else:                        tried.append(pattern.regex.pattern)? Local vars
Variable Value
e Resolver404({'path': u'xweb/launcher2/'},)
match <_sre.SRE_Match object at 0x1c92ad98>
new_path u'xweb/launcher2/'
path u'/xweb/launcher2/'
pattern <RegexURLPattern None ^xweb/launcher2/>
self <RegexURLResolver urls (None:None) ^/>
sub_match None
sub_tried None
tried ['^xweb/scripts/(?P<path>.*)$', '^xweb/images/(?P<path>.*)$', '^xweb/css/(?P<path>.*)$', '^xweb/wizard/', '^xweb/wizard/login/', '^xweb/wizard/relogin/', '^xweb/wizard/register/', '^xweb/wizard/resetpwd/', '^xweb/pack/', '^xweb/msgboard/', '^xweb/msgbubble/', '^xweb/sharefile/', '^xweb/sharefile2/', '^xweb/services/', '^xweb/help/', '^xweb/activeuser/', '^xweb/log/', '^xweb/mission/', '^xweb/main/', '^xweb/wps2kp/', '^xweb/launcher/']

/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/urlresolvers.py in resolve
            if kwargs:                args = ()            else:                args = match.groups()            # In both cases, pass any extra_kwargs as **kwargs.            kwargs.update(self.default_args)            return self.callback, args, kwargs ...    def _get_callback(self):        if self._callback is not None:            return self._callback        try:            self._callback = get_callable(self._callback_str)? Local vars
Variable Value
args ()
kwargs {}
match <_sre.SRE_Match object at 0x1c903920>
path u'xweb/launcher2/'
self <RegexURLPattern None ^xweb/launcher2/>

/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/urlresolvers.py in _get_callback
        try:            self._callback = get_callable(self._callback_str)        except ImportError, e:            mod_name, _ = get_mod_func(self._callback_str)            raise ViewDoesNotExist("Could not import %s. Error was: %s" % (mod_name, str(e)))        except AttributeError, e:            mod_name, func_name = get_mod_func(self._callback_str)            raise ViewDoesNotExist("Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e))) ...        return self._callback    callback = property(_get_callback)class RegexURLResolver(object):    def __init__(self, regex, urlconf_name, default_kwargs=None, app_name=None, namespace=None):        # regex is a string representing a regular expression.? Local vars
Variable Value
e AttributeError("'module' object has no attribute 'launcher2'",)
func_name 'launcher2'
mod_name 'src.launcher.views'
self <RegexURLPattern None ^xweb/launcher2/>

    Environment:

Request Method: GET
Request URL: http://k.wps.cn/xweb/launcher2/
Django Version: 1.2.3
Python Version: 2.6.6
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'src.login',
 'src.register']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware')


Traceback:
File "/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py" in get_response
  91.                         request.path_info)
File "/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/urlresolvers.py" in resolve
  217.                     sub_match = pattern.resolve(new_path)
File "/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/urlresolvers.py" in resolve
  123.             return self.callback, args, kwargs
File "/usr/local/python/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/urlresolvers.py" in _get_callback
  135.             raise ViewDoesNotExist("Tried %s in module %s. Error was: %s" % (func_name, mod_name, str(e)))

Exception Type: ViewDoesNotExist at /xweb/launcher2/
Exception Value: Tried launcher2 in module src.launcher.views. Error was: 'module' object has no attribute 'launcher2'
 

 
Request information
GET
No GET data

POST
No POST data

FILES
No FILES data

COOKIES
No cookie data

META
Variable Value
CONTENT_LENGTH ''
CONTENT_TYPE ''
DOCUMENT_ROOT '/usr/local/nginx/html'
DOCUMENT_URI '/xweb/launcher2/'
GATEWAY_INTERFACE 'CGI/1.1'
HTTP_ACCEPT '*/*'
HTTP_ACCEPT_ENCODING 'gzip, deflate'
HTTP_ACCEPT_LANGUAGE 'zh-cn'
HTTP_CONNECTION 'Keep-Alive'
HTTP_HOST 'k.wps.cn'
HTTP_USER_AGENT 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322)'
PATH_INFO u'/xweb/launcher2/'
QUERY_STRING ''
REMOTE_ADDR '60.209.124.214'
REMOTE_PORT '18963'
REQUEST_METHOD 'GET'
REQUEST_URI '/xweb/launcher2/'
SCRIPT_NAME u''
SERVER_ADDR '172.16.2.58'
SERVER_NAME 'k.wps.cn'
SERVER_PORT '80'
SERVER_PROTOCOL 'HTTP/1.1'
SERVER_SOFTWARE 'nginx/0.8.9'
wsgi.errors <flup.server.fcgi_base.TeeOutputStream object at 0x2aaaac0a61d0>
wsgi.input <flup.server.fcgi_base.InputStream object at 0x2aaaac0a6dd0>
wsgi.multiprocess True
wsgi.multithread False
wsgi.run_once False
wsgi.url_scheme 'http'
wsgi.version (1, 0)

Settings
Using settings module xliveguide.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',)
BANNED_IPS ()
CACHE_BACKEND 'locmem://'
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
CSRF_COOKIE_DOMAIN None
CSRF_COOKIE_NAME 'csrftoken'
CSRF_FAILURE_VIEW 'django.views.csrf.csrf_failure'
CSS_PATH '/data/app/xliveguide//css/'
DATABASES {'default': {'ENGINE': 'django.db.backends.dummy', 'HOST': '', 'NAME': '', 'OPTIONS': {}, 'PASSWORD': '********************', 'PORT': '', 'TEST_CHARSET': None, 'TEST_COLLATION': None, 'TEST_MIRROR': None, 'TEST_NAME': None, 'TIME_ZONE': 'Asia/Shanghai', 'USER': ''}}
DATABASE_ENGINE ''
DATABASE_HOST ''
DATABASE_NAME ''
DATABASE_OPTIONS {}
DATABASE_PASSWORD '********************'
DATABASE_PORT ''
DATABASE_ROUTERS []
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 'webmaster@localhost'
DEFAULT_INDEX_TABLESPACE ''
DEFAULT_TABLESPACE ''
DISALLOWED_USER_AGENTS ()
EMAIL_BACKEND 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST 'localhost'
EMAIL_HOST_PASSWORD '********************'
EMAIL_HOST_USER ''
EMAIL_PORT 25
EMAIL_SUBJECT_PREFIX '[Django] '
EMAIL_USE_TLS False
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
FIRST_DAY_OF_WEEK 0
FIXTURE_DIRS ()
FORCE_SCRIPT_NAME None
FORMAT_MODULE_PATH None
IGNORABLE_404_ENDS ('mail.pl', 'mailform.pl', 'mail.cgi', 'mailform.cgi', 'favicon.ico', '.php')
IGNORABLE_404_STARTS ('/cgi-bin/', '/_vti_bin', '/_vti_inf')
IMAGES_PATH '/data/app/xliveguide//images/'
INSTALLED_APPS ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.admin', 'src.login', 'src.register']
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 ()
LOGIN_REDIRECT_URL '/accounts/profile/'
LOGIN_URL '/accounts/login/'
LOGOUT_URL '/accounts/logout/'
MANAGERS ()
MEDIA_ROOT '/data/app/xliveguide/'
MEDIA_URL ''
MESSAGE_STORAGE 'django.contrib.messages.storage.user_messages.LegacyFallbackStorage'
MIDDLEWARE_CLASSES ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware')
MONTH_DAY_FORMAT 'F j'
NUMBER_GROUPING 0
PASSWORD_RESET_TIMEOUT_DAYS '********************'
PREPEND_WWW False
PROFANITIES_LIST '********************'
ROOT_URLCONF 'urls'
SCRIPTS_PATH '/data/app/xliveguide//scripts/'
SECRET_KEY '********************'
SEND_BROKEN_LINK_EMAILS False
SERVER_EMAIL 'root@localhost'
SESSION_COOKIE_AGE 1209600
SESSION_COOKIE_DOMAIN None
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 'xliveguide.settings'
SHORT_DATETIME_FORMAT 'm/d/Y P'
SHORT_DATE_FORMAT 'm/d/Y'
SITE_ID 1
TEMPLATE_CONTEXT_PROCESSORS ('django.core.context_processors.auth', 'django.core.context_processors.debug', 'django.core.context_processors.i18n', 'django.core.context_processors.media', 'django.core.context_processors.request')
TEMPLATE_DEBUG True
TEMPLATE_DIRS ('/data/app/xliveguide//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'
THOUSAND_SEPARATOR ','
TIME_FORMAT 'P'
TIME_INPUT_FORMATS ('%H:%M:%S', '%H:%M')
TIME_ZONE 'Asia/Shanghai'
TRANSACTIONS_MANAGED False
URL_VALIDATOR_USER_AGENT 'Django/1.2.3 (http://www.djangoproject.com)'
USE_ETAGS False
USE_I18N False
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.

加载中
0
华宰
华宰
怎么还有django 的东西啊?
返回顶部
顶部