【讨论贴】关于本站运气不错模块 [里*世界]

添加文件...
 

添加最终回数字:
序章
我在访问本站运气不错栏目时,看到了一堆英文。请问这是什么意思?

以下为该页面的数据。


 AttributeError at /topic/random/
'function' object has no attribute 'randrange'
Request Method: GET
Request URL: http://gushijielong.cn/topic/random/
Django Version: 1.8.2
Exception Type: AttributeError
Exception Value:
'function' object has no attribute 'randrange'
Exception Location: /home/zzm/fairybbs/forum/views.py in random, line 963
Python Executable: /usr/bin/python
Python Version: 2.7.6
Python Path:
['/home/zzm/fairybbs',
 '/home/zzm/fairybbs',
 '/var/www/.virtualenvs/jielong/lib/python2.7/site-packages',
 '/usr/local/lib/python2.7/dist-packages/virtualenvwrapper-4.7.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/stevedore-1.10.0-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/virtualenv_clone-0.2.6-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/pbr-1.8.1-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/django_mptt-0.8.5-py2.7.egg',
 '/usr/local/lib/python2.7/dist-packages/Pillow-4.1.1-py2.7-linux-x86_64.egg',
 '/usr/local/lib/python2.7/dist-packages/olefile-0.44-py2.7.egg',
 '/usr/lib/python2.7',
 '/usr/lib/python2.7/plat-x86_64-linux-gnu',
 '/usr/lib/python2.7/lib-tk',
 '/usr/lib/python2.7/lib-old',
 '/usr/lib/python2.7/lib-dynload',
 '/usr/local/lib/python2.7/dist-packages',
 '/usr/lib/python2.7/dist-packages',
 '/var/www/.virtualenvs/jielong/lib/python2.7/site-packages/IPython/extensions']
Server time: 星期五, 17 五月 2019 21:37:18 +0800
Traceback Switch to copy-and-paste view
/var/www/.virtualenvs/jielong/lib/python2.7/site-packages/django/core/handlers/base.py in get_response
                                response = wrapped_callback(request, *callback_args, **callback_kwargs) ...
▶ Local vars
/home/zzm/fairybbs/forum/views.py in random
                    topic_id = random.randrange(min, max) ...
▶ Local vars
Request information
GET
No GET data
POST
No POST data
FILES
No FILES data
COOKIES
Variable Value
csrftoken
'FLyz5AQbLxl8rYAtLct0ybn0vs1Lw28W'
sessionid
'b3troim15duux0l4ufcqtiwgn1ozs36d'
META
Variable Value
mod_wsgi.listener_port
'80'
HTTP_COOKIE
'sessionid=b3troim15duux0l4ufcqtiwgn1ozs36d; csrftoken=FLyz5AQbLxl8rYAtLct0ybn0vs1Lw28W'
mod_wsgi.listener_host
''
CONTEXT_DOCUMENT_ROOT
'/var/www'
SERVER_SOFTWARE
'Apache/2.4.7 (Ubuntu)'
SCRIPT_NAME
u''
mod_wsgi.enable_sendfile
'0'
mod_wsgi.handler_script
''
SERVER_SIGNATURE
'<address>Apache/2.4.7 (Ubuntu) Server at gushijielong.cn Port 80</address>\n'
REQUEST_METHOD
'GET'
PATH_INFO
u'/topic/random/'
SERVER_PROTOCOL
'HTTP/1.1'
QUERY_STRING
''
HTTP_USER_AGENT
'Mozilla/5.0 (Linux; U; Android 7.0; zh-CN; SM-N9200 Build/NRD90M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 Quark/3.3.0.110 Mobile Safari/537.36'
HTTP_CONNECTION
'keep-alive'
HTTP_REFERER
'http://gushijielong.cn/'
SERVER_NAME
'gushijielong.cn'
REMOTE_ADDR
'183.192.42.240'
mod_wsgi.queue_start
'1558100238580196'
mod_wsgi.request_handler
'wsgi-script'
wsgi.url_scheme
'http'
PATH_TRANSLATED
'/home/zzm/fairybbs/fairy/wsgi.py/topic/random/'
SERVER_PORT
'80'
wsgi.multiprocess
False
mod_wsgi.input_chunked
'0'
SERVER_ADDR
'172.26.143.75'
DOCUMENT_ROOT
'/var/www'
mod_wsgi.process_group
'gushijielong.cn'
SCRIPT_FILENAME
'/home/zzm/fairybbs/fairy/wsgi.py'
SERVER_ADMIN
'sea3@qq.com'
wsgi.input
<mod_wsgi.Input object at 0x7fcf34bf5d70>
HTTP_DNT
'1'
HTTP_HOST
'gushijielong.cn'
CONTEXT_PREFIX
''
HTTP_X_UCBROWSER_UA
'dv(HTC 802t);pr(UCBrowser/10.2.0.535);ov(Android 5.0.2);ss(360*640);pi(1080*1920);bt(UC);pm(1);bv(1);nm(0);im(0);sr(0);nt(2);'
wsgi.multithread
True
HTTP_UPGRADE_INSECURE_REQUESTS
'1'
REQUEST_URI
'/topic/random/'
HTTP_ACCEPT
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8'
mod_wsgi.callable_object
'application'
wsgi.version
(1, 0)
GATEWAY_INTERFACE
'CGI/1.1'
wsgi.run_once
False
wsgi.errors
<mod_wsgi.Log object at 0x7fcf23b2da30>
REMOTE_PORT
'7099'
HTTP_ACCEPT_LANGUAGE
'zh-CN,en-US;q=0.8'
REQUEST_SCHEME
'http'
mod_wsgi.version
(3, 4)
mod_wsgi.application_group
'www.gushijielong.cn|'
mod_wsgi.script_reloading
'1'
wsgi.file_wrapper
''
CSRF_COOKIE
u'FLyz5AQbLxl8rYAtLct0ybn0vs1Lw28W'
HTTP_ACCEPT_ENCODING
'gzip, deflate'
Settings
Using settings module fairy.settings
Setting Value
SECURE_BROWSER_XSS_FILTER
False
USE_THOUSAND_SEPARATOR
False
CSRF_COOKIE_SECURE
False
LANGUAGE_CODE
'en-us'
ROOT_URLCONF
'fairy.urls'
MANAGERS
()
BASE_DIR
'/home/zzm/fairybbs'
SILENCED_SYSTEM_CHECKS
[]
DEFAULT_CHARSET
'utf-8'
SESSION_SERIALIZER
'django.contrib.sessions.serializers.JSONSerializer'
STATIC_ROOT
'/collected_static/'
ALLOWED_HOSTS
['']
MESSAGE_STORAGE
'django.contrib.messages.storage.fallback.FallbackStorage'
EMAIL_SUBJECT_PREFIX
'[Django] '
SERVER_EMAIL
'admin@gushijielong.cn'
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'
THUMBNAIL_ALIASES
{'': {'avatar': {'crop': True, 'size': (50, 50)},
      'banner': {'crop': True, 'size': (400, 101)},
      'readmode': {'crop': True, 'size': (630, 301)}}}
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.sqlite3',
             'HOST': '',
             'NAME': '/home/zzm/fairybbs/db.sqlite3',
             'OPTIONS': {},
             'PASSWORD': u'********************',
             'PORT': '',
             'TEST': {'CHARSET': None,
                      'COLLATION': None,
                      'MIRROR': None,
                      'NAME': None},
             'TIME_ZONE': 'UTC',
             'USER': ''}}
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
True
LOCALE_PATHS
('/home/zzm/fairybbs/locale',)
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
'/'
SECURE_CONTENT_TYPE_NOSNIFF
False
MIDDLEWARE_CLASSES
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.middleware.locale.LocaleMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'fairy.middleware.SiteOff',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'pagination.middleware.PaginationMiddleware')
USE_I18N
True
THOUSAND_SEPARATOR
','
SECRET_KEY
u'********************'
LANGUAGE_COOKIE_NAME
'django_language'
DEFAULT_INDEX_TABLESPACE
''
LOGGING_CONFIG
'logging.config.dictConfig'
TEMPLATE_LOADERS
('django.template.loaders.filesystem.Loader',
 'django.template.loaders.app_directories.Loader')
FIRST_DAY_OF_WEEK
0
WSGI_APPLICATION
'fairy.wsgi.application'
TEMPLATE_DEBUG
True
X_FRAME_OPTIONS
'SAMEORIGIN'
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'
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
('account',
 'forum',
 'pagination',
 'panel',
 'django.contrib.humanize',
 'django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django_ajax',
 'mptt',
 'after_response',
 'notifications',
 'mail_templated',
 'django_messages',
 'taggit',
 'easy_thumbnails',
 'jfu',
 'liwu',
 'treeworld',
 'rest_framework',
 'rest_framework_swagger')
LANGUAGES
(('en', 'English'),
 ('zh-cn', '\xe4\xb8\xad\xe6\x96\x87\xe7\xae\x80\xe4\xbd\x93'),
 ('zh-tw', '\xe4\xb8\xad\xe6\x96\x87\xe7\xb9\x81\xe9\xab\x94'))
USE_L10N
True
SECURE_HSTS_INCLUDE_SUBDOMAINS
False
STATICFILES_DIRS
('/home/zzm/fairybbs/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',
 'guardian.backends.ObjectPermissionBackend')
EMAIL_HOST_PASSWORD
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
TEMPLATE_DIRS
('/home/zzm/fairybbs/template',
 '/home/zzm/fairybbs/template/common',
 '/home/zzm/fairybbs/template/widget')
FIXTURE_DIRS
()
EMAIL_HOST
'smtp.exmail.qq.com'
DATE_FORMAT
'N j, Y'
MEDIA_ROOT
'/home/zzm/fairybbs/media'
DEFAULT_EXCEPTION_REPORTER_FILTER
'django.views.debug.SafeExceptionReporterFilter'
ADMINS
()
FORMAT_MODULE_PATH
None
DEFAULT_FROM_EMAIL
'\xe7\x8b\x97\xe5\xb0\xbe\xe7\xbb\xad\xe5\x96\xb5admin <admin@gushijielong.cn>'
REST_FRAMEWORK
{'DEFAULT_PERMISSION_CLASSES': []}
MEDIA_URL
'/media/'
DATETIME_FORMAT
'N j, Y, P'
MAX_UPLOAD_SIZE
'524288'
DISALLOWED_USER_AGENTS
()
ALLOWED_INCLUDE_ROOTS
()
LOGGING
{}
SHORT_DATE_FORMAT
'm/d/Y'
TEMPLATES
[]
TEST_RUNNER
'django.test.runner.DiscoverRunner'
CACHE_MIDDLEWARE_KEY_PREFIX
u'********************'
SECURE_SSL_REDIRECT
False
TIME_ZONE
'Asia/Shanghai'
FILE_UPLOAD_MAX_MEMORY_SIZE
2621440
EMAIL_BACKEND
'django.core.mail.backends.smtp.EmailBackend'
CSRF_COOKIE_HTTPONLY
False
EMAIL_USE_SSL
True
TEMPLATE_CONTEXT_PROCESSORS
('django.core.context_processors.request',
 'django.core.context_processors.static',
 'django.contrib.auth.context_processors.auth',
 'django.contrib.messages.context_processors.messages')
THUMBNAIL_DEBUG
True
SESSION_COOKIE_AGE
1209600
SETTINGS_MODULE
'fairy.settings'
USE_ETAGS
False
LANGUAGES_BIDI
('he', 'ar', 'fa', 'ur')
FILE_UPLOAD_TEMP_DIR
None
INTERNAL_IPS
()
STATIC_URL
'/static/'
EMAIL_PORT
465
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
ANONYMOUS_USER_ID
-1
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
'admin@gushijielong.cn'
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.

连载至第3回

    第1回4 months, 1 week ago

    标题写错了,运气不错应该是手气不错。

    -----许玉帅_xuyushuai 30945

    [挖]

    第2回4 months, 1 week ago

    加群然后@群主

    -----361800657 36151【犹豫,就会白给】

    [挖]

    许玉帅_xuyushuai:贴主说没空,我来代替他管一会。

    许玉帅_xuyushuai:不加QQ群的原因是因为我们都没有QQ号,并且注册一个QQ号很繁琐,因此你们可以选择QQ和微信各一个群,而且贴主只留了一个微信号,并没有留QQ号。

    第3回4 months, 1 week ago

    我建个微信群吧
    加179103581

    -----feifei 42814

    [挖]
请登录
sign in

评论区