django registration redux不工作。我已将设置更改为以下设置并运行python manage.py migrate
。我不知道为什么它没有对数据库做任何操作,这是页面未找到错误中建议的?在
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites', # manually added
'django.contrib.messages',
'django.contrib.staticfiles',
# third party apps
'crispy_forms',
'registration', # django-registration-redux
# my apps
'newsletter',
)
# Django-registration-redux settings
ACCOUNT_ACTIVATION_DAYS = 7
REGISTRATION_AUTO_LOGIN = True
我只是想如果有人遇到同样的问题,我会把我的问题的解决方案贴出来。如果模板没有存储在一个文件夹中,则需要将模板
base.html
引用到正确的文件夹中,因此它将成为{% extends "folder/base.html" %}
。在registration
文件夹中有两个html文件,其中base.html
需要重新引用。在相关问题 更多 >
编程相关推荐