Thoughts and tutorials on programming

Wednesday, June 06, 2007

django strange error

so...ever get one of these?


Request Method: GET
Request URL: http://localhost:8000/generic_html/traffic_color_definitions.html
Exception Type: AttributeError
Exception Value: 'str' object has no attribute 'resolve'
Exception Location: C:\office_in_out\oliver\edited_django_repository_files\django\core\urlresolvers.py in resolve, line 163


It may be because you add to your urlpatterns, in settings.py, but forget to name it urlpatterns. Why this sometimes works, and sometimes doesn't, I have no idea :)

urlpatterns += ('',
(r'^static_files/(?P.*)$', 'django.views.static.serve', {'document_root': 'C:/office_in_out/oliver/drb/static_files', 'show_indexes': True}),
)

This is bad. it should be patterns('',...
GL!

4 comments:

Anonymous said...

Good Afternoon!!! programming-gone-awry.blogspot.com is one of the most outstanding informational websites of its kind. I take advantage of reading it every day. All the best.

Anonymous said...

The author of programming-gone-awry.blogspot.com has written an excellent article. You have made your point and there is not much to argue about. It is like the following universal truth that you can not argue with: Truth is infinite, understanding is finite Thanks for the info.

Anonymous said...

programming-gone-awry.blogspot.com is the best. Thank your for this article. I enjoyed it very much.
AAA Toronto Payday Loans 1172 Bay St #101, Toronto, ON M5S 2B4 (416) 477-2817

Anonymous said...

After reading you site, Your site is very useful for me .I bookmarked your site!

Contributors

Followers