Re: Error while importing URLconf 'mysite.urls': 'module' object has no attribute 'views'

2008-06-17 Thread Chris Haynes
Resolved. Don't know how. On Jun 14, 9:16 pm, Chris Haynes <[EMAIL PROTECTED]> wrote: > This error goes away if I remove the line > (r'^ptree/$', mysite.trees.views.parse_tree), > from the urlpatterns. But I can import trees.views from the shell > > ~/dj/mysite 144: manage.py shell > Python

Error while importing URLconf 'mysite.urls': 'module' object has no attribute 'views'

2008-06-14 Thread Chris Haynes
This error goes away if I remove the line (r'^ptree/$', mysite.trees.views.parse_tree), from the urlpatterns. But I can import trees.views from the shell ~/dj/mysite 144: manage.py shell Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)] on win32 Type "help",