昨天工作得很好,但今天我在运行'grunt server'时突然遇到这个错误:
Running "bowerInstall:app" (bowerInstall) task
Warning: Cannot read property 'main' of undefined Use --force to continue.
Aborted due to warnings.
Run Code Online (Sandbox Code Playgroud)
我甚至对前一次提交进行了硬重置,但我仍然遇到同样的错误.可能是什么导致了这个?
我过去几天一直在努力学习Django,但最近我偶然发现了一个我似乎无法修复的问题.在完成Django自己编写第一个应用程序的教程后,我决定再次完成它.只有现在我会更换所有内容以满足我正在构建的原始应用程序的要求.
所以,一切顺利,直到我得到第3部分.当我尝试加载时,http://localhost:8000/lru/我收到以下错误消息:
AttributeError at /lru/
'module' object has no attribute 'index'
Run Code Online (Sandbox Code Playgroud)
追溯:
Internal Server Error: /favicon.ico
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/django/core/handlers/base.py", line 92, in get_response
response = middleware_method(request)
File "/Library/Python/2.7/site-packages/django/middleware/common.py", line 69, in process_request
if (not urlresolvers.is_valid_path(request.path_info, urlconf) and
File "/Library/Python/2.7/site-packages/django/core/urlresolvers.py", line 551, in is_valid_path
resolve(path, urlconf)
File "/Library/Python/2.7/site-packages/django/core/urlresolvers.py", line 440, in resolve
return get_resolver(urlconf).resolve(path)
File "/Library/Python/2.7/site-packages/django/core/urlresolvers.py", line 319, in resolve
for pattern in self.url_patterns:
File "/Library/Python/2.7/site-packages/django/core/urlresolvers.py", line 347, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) …Run Code Online (Sandbox Code Playgroud)