小编K s*_*str的帖子

Django:TemplateDoesNotExist at /login/(源不存在)

我正在尝试进入 Django,我正在这里和那里学习教程。我正在尝试从官方 Django 教程中向投票应用程序添加登录页面,但即使我按照这个简单的教程进行操作,我还是收到了TemplateDoesNotExist error. 不过,据我所知,Django 正在寻找login.html正确的目录,并给出消息 Source 不存在。

我的文件结构:

??? db.sqlite3
??? manage.py
??? secvot
?   ??? __init__.py
?   ??? __init__.pyc
?   ??? settings.py
?   ??? settings.pyc
?   ??? templates
?   ?   ??? admin
?   ?   ?   ??? base_site.html
?   ?   ??? registration
?   ?       ??? login.html
?   ?       ??? logout.html
?   ??? urls.py
?   ??? urls.pyc
?   ??? wsgi.py
?   ??? wsgi.pyc
??? voting
    ??? admin.py
    ??? admin.pyc
    ??? apps.py
    ??? apps.pyc …
Run Code Online (Sandbox Code Playgroud)

python authentication django templates

4
推荐指数
1
解决办法
7201
查看次数

标签 统计

authentication ×1

django ×1

python ×1

templates ×1