我通过pip将askbot安装到我现有的本地Django项目中。我合并了askbot设置&使用我现有文件的Uls文件。当我转到127.0.0.1:8000/时,它被重定向到127.0.0.1:8000/questions。我可以看到所有现有用户,但没有登录可用。
我看到很多Url重定向因为反向而无法正常工作,例如Reverse for 'home' with arguments '()' and keyword arguments '{}' not found.
在我的后端数据库中,所有表都看起来很好。但是用户没有与askbot集成,而且context_processor.py也存在AttributeError。
这是我的模板上下文元组
TEMPLATE_CONTEXT_PROCESSORS = (
#askbot
#'django.contrib.auth.context_processors.auth',
'django.core.context_processors.request',
#"allauth.context_processors.allauth",
#"allauth.account.context_processors.account",
'askbot.context.application_settings',
#'django.core.context_processors.i18n',
'askbot.user_messages.context_processors.user_messages',#must be before auth
'django.contrib.auth.context_processors.auth', #this is required for admin
'django.core.context_processors.csrf', #necessary for csrf protection
###############askbot ended###########
#"django.contrib.auth.context_processors.auth",
"django.core.context_processors.media",
'django.core.context_processors.static',
#"django.core.context_processors.request",
"django.contrib.messages.context_processors.messages",
"apps.common.utils.context_processors.app_wide_vars",
"apps.common.context_processors.feedback_questions",
"allauth.context_processors.allauth",
"allauth.account.context_processors.account",
#"allauth.socialaccount.context_processors.socialaccount",
#'cms.context_processors.media',
'sekizai.context_processors.sekizai',
#'admintools_bootstrap.context_processors.site',
)