Django-PasswordResetView始终默认为管理页面
我正在使用Django的默认密码重置系统,但无论我做什么,我都无法让Django加载我的自定义HTML模板。它总是去电影院 我尝试使用默认文件夹位置和默认文件名。将“password\u reset\u form.html”和“password\u reset\u email.html”放入Django-PasswordResetView始终默认为管理页面,django,Django,我正在使用Django的默认密码重置系统,但无论我做什么,我都无法让Django加载我的自定义HTML模板。它总是去电影院 我尝试使用默认文件夹位置和默认文件名。将“password\u reset\u form.html”和“password\u reset\u email.html”放入注册文件夹 url(r'^password\u reset/$',auth\u views.PasswordResetView.as\u view(),name='reset\u password'), 我还
注册
文件夹
url(r'^password\u reset/$',auth\u views.PasswordResetView.as\u view(),name='reset\u password'),
我还尝试使用自定义文件夹位置和自定义HTML名称
url(r'^password_reset/$', auth_views.PasswordResetView.as_view(template_name='change_password/password_reset.html', success_url='../password_reset_done/', email_template_name='change_password/password_reset_email.html'), name='reset_password'),
这是我的HTML标签:
<p><a href="{% url 'reset_password' %}">Forgot Password?</a></p>
树
├───bungol
│ ├───accounts
│ │ ├───migrations
│ │ │ └───__pycache__
│ │ ├───templates
│ │ │ ├───accounts
│ │ │ ├───change_password
│ │ │ ├───registration
│ │ │ └───teams
│ │ ├───templatetags
│ │ │ └───__pycache__
│ │ └───__pycache__
│ ├───accountsext
│ │ └───migrations
│ ├───coresite
│ │ ├───migrations
│ │ │ └───__pycache__
│ │ ├───templates
│ │ └───__pycache__
│ ├───databases
│ │ ├───migrations
│ │ │ └───__pycache__
│ │ ├───templates
│ │ │ └───databases
│ │ └───__pycache__
│ ├───listings
│ │ ├───migrations
│ │ │ └───__pycache__
│ │ ├───templates
│ │ │ └───listings
│ │ └───__pycache__
│ ├───media
│ ├───static
│ │ ├───accounts
│ │ ├───coresite
│ │ ├───databases
│ │ ├───listings
│ │ └───templates
│ ├───templates
│ │ └───static
│ └───__pycache__
├───config
│ └───__pycache__
└───misc (non-coding related stuff)
您能发布设置文件的(相关)部分以及目录树的(相关部分)吗?@WillemVanOnsem添加到原始帖子中。嗨@Valachio,您是如何解决这个问题的。.您能发布设置文件的(相关)部分以及(相关部分)吗目录树的名称?@WillemVanOnsem添加到原始帖子中。嗨@Valachio,你是如何解决这个问题的。。
├───bungol
│ ├───accounts
│ │ ├───migrations
│ │ │ └───__pycache__
│ │ ├───templates
│ │ │ ├───accounts
│ │ │ ├───change_password
│ │ │ ├───registration
│ │ │ └───teams
│ │ ├───templatetags
│ │ │ └───__pycache__
│ │ └───__pycache__
│ ├───accountsext
│ │ └───migrations
│ ├───coresite
│ │ ├───migrations
│ │ │ └───__pycache__
│ │ ├───templates
│ │ └───__pycache__
│ ├───databases
│ │ ├───migrations
│ │ │ └───__pycache__
│ │ ├───templates
│ │ │ └───databases
│ │ └───__pycache__
│ ├───listings
│ │ ├───migrations
│ │ │ └───__pycache__
│ │ ├───templates
│ │ │ └───listings
│ │ └───__pycache__
│ ├───media
│ ├───static
│ │ ├───accounts
│ │ ├───coresite
│ │ ├───databases
│ │ ├───listings
│ │ └───templates
│ ├───templates
│ │ └───static
│ └───__pycache__
├───config
│ └───__pycache__
└───misc (non-coding related stuff)