DjangRegistrationRedux不工作

2024-04-27 04:36:20 发布

您现在位置:Python中文网/ 问答频道 /正文

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

enter image description here


Tags: appsinstalleddjangopy数据库manageadmin错误
1条回答
网友
1楼 · 发布于 2024-04-27 04:36:20

我只是想如果有人遇到同样的问题,我会把我的问题的解决方案贴出来。如果模板没有存储在一个文件夹中,则需要将模板base.html引用到正确的文件夹中,因此它将成为{% extends "folder/base.html" %}。在registration文件夹中有两个html文件,其中base.html需要重新引用。在

相关问题 更多 >