AngularJS未加载模板-错误:[$injector:nomod]/错误:[$injector:modulerr]

AngularJS未加载模板-错误:[$injector:nomod]/错误:[$injector:modulerr],angularjs,django,Angularjs,Django,我是AngularJS的新手(也是这个社区的新手)。我正在关注Thinkster关于Django和AngularJS的教程()。在完成教程中的“注册新用户”和“登录用户”部分后,我在尝试加载注册和登录模板时遇到问题 经过大量研究,虽然我发现了类似的问题,但仍然无法解决这个具体问题。控制台显示以下内容: SyntaxError: syntax error Error: [$injector:nomod] Module 'thinkster.config' is not available! You

我是AngularJS的新手(也是这个社区的新手)。我正在关注Thinkster关于Django和AngularJS的教程()。在完成教程中的“注册新用户”和“登录用户”部分后,我在尝试加载注册和登录模板时遇到问题

经过大量研究,虽然我发现了类似的问题,但仍然无法解决这个具体问题。控制台显示以下内容:

SyntaxError: syntax error
Error: [$injector:nomod] Module 'thinkster.config' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.3.20/$injector/nomod?p0=thinkster.config
Error: [$injector:nomod] Module 'thinkster.routes' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.3.20/$injector/nomod?p0=thinkster.routes
SyntaxError: syntax error
Error: [$injector:modulerr] Failed to instantiate module thinkster due to:
[$injector:nomod] Module 'thinkster' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.3.20/$injector/nomod?p0=thinkster
minErr/<@http://127.0.0.1:8000/static/bower_components/angular/angular.js:63:5
module/<@http://127.0.0.1:8000/static/bower_components/angular/angular.js:1780:1
ensure@http://127.0.0.1:8000/static/bower_components/angular/angular.js:1702:5
module@http://127.0.0.1:8000/static/bower_components/angular/angular.js:1776:7
loadModules/<@http://127.0.0.1:8000/static/bower_components/angular/angular.js:4131:11
forEach@http://127.0.0.1:8000/static/bower_components/angular/angular.js:326:11
loadModules@http://127.0.0.1:8000/static/bower_components/angular/angular.js:4115:5
createInjector@http://127.0.0.1:8000/static/bower_components/angular/angular.js:4041:3
bootstrap/doBootstrap@http://127.0.0.1:8000/static/bower_components/angular/angular.js:1455:9
bootstrap@http://127.0.0.1:8000/static/bower_components/angular/angular.js:1476:5
angularInit@http://127.0.0.1:8000/static/bower_components/angular/angular.js:1370:37
@http://127.0.0.1:8000/static/bower_components/angular/angular.js:26446:5
jQuery.Callbacks/fire@http://127.0.0.1:8000/static/bower_components/jquery/dist/jquery.js:3099:1
jQuery.Callbacks/self.fireWith@http://127.0.0.1:8000/static/bower_components/jquery/dist/jquery.js:3211:7
.ready@http://127.0.0.1:8000/static/bower_components/jquery/dist/jquery.js:3417:38
completed@http://127.0.0.1:8000/static/bower_components/jquery/dist/jquery.js:3433:2

http://errors.angularjs.org/1.3.20/$injector/modulerr?p0=thinkster&p1=%5B%24injector%3Anomod%5D%20Module%20'thinkster'%20is%20not%20available!%20You%20either%20misspelled%20the%20module%20name%20or%20forgot%20to%20load%20it.%20If%20registering%20a%20module%20ensure%20that%20you%20specify%20the%20dependencies%20as%20the%20second%20argument.%0Ahttp%3A%2F%2Ferrors.angularjs.org%2F1.3.20%2F%24injector%2Fnomod%3Fp0%3Dthinkster%0AminErr%2F%3C%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A63%3A5%0Amodule%2F%3C%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A1780%3A1%0Aensure%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A1702%3A5%0Amodule%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A1776%3A7%0AloadModules%2F%3C%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A4131%3A11%0AforEach%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A326%3A11%0AloadModules%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A4115%3A5%0AcreateInjector%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A4041%3A3%0Abootstrap%2FdoBootstrap%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A1455%3A9%0Abootstrap%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A1476%3A5%0AangularInit%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A1370%3A37%0A%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fangular%2Fangular.js%3A26446%3A5%0AjQuery.Callbacks%2Ffire%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fjquery%2Fdist%2Fjquery.js%3A3099%3A1%0AjQuery.Callbacks%2Fself.fireWith%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fjquery%2Fdist%2Fjquery.js%3A3211%3A7%0A.ready%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fjquery%2Fdist%2Fjquery.js%3A3417%3A38%0Acompleted%40http%3A%2F%2F127.0.0.1%3A8000%2Fstatic%2Fbower_components%2Fjquery%2Fdist%2Fjquery.js%3A3433%3A2%0A angular.js:63
SyntaxError:语法错误
错误:[$injector:nomod]模块'thinkster.config'不可用!您要么拼错了模块名,要么忘记加载它。如果注册模块,请确保将依赖项指定为第二个参数。
http://errors.angularjs.org/1.3.20/$injector/nomod?p0=thinkster.config
错误:[$injector:nomod]模块'thinkster.routes'不可用!您要么拼错了模块名,要么忘记加载它。如果注册模块,请确保将依赖项指定为第二个参数。
http://errors.angularjs.org/1.3.20/$injector/nomod?p0=thinkster.routes
语法错误:语法错误
错误:[$injector:modulerr]未能实例化模块thinkster,原因是:
[$injector:nomod]模块“thinkster”不可用!您要么拼错了模块名,要么忘记加载它。如果注册模块,请确保将依赖项指定为第二个参数。
http://errors.angularjs.org/1.3.20/$injector/nomod?p0=thinkster

Miner/无需编写[
thinkster.config
thinkster.routes
thinkster.authentication
]为什么错误消息会显示Angular 1.3.20,而index.html加载Angular 1.2.23?依赖项应该是引号中的字符串,您需要加载
angular route.js
很抱歉,该行不应该在那里,它不在我的原始代码中。我已经编辑过了。是的,您是对的,依赖项应该是引号中的字符串,angular-route.js已经加载到我的索引中(通过包含的文件:{%include'javascripts.html%})。错误消息仍然相同