On Thu, 2008-09-25 at 20:20 -0400, Xian Chen wrote: > Hi All, > > I have a problem with Django v0.95 ( I cannot convince the > administrator to install 1.0 for me.) > > I got this feedback:( > > AttributeError at /xianchen/ > 'function' object has no attribute 'rindex'
You might have stumbled over ticket #2875, so manually applying the patch that was used to fix that ticket might work. Unfortunately, if you can't modify the source or install a copy locally (and if you could install locally and run 1.0, that would be the preferred method), you're not going to be able to do that. > After looking up the internet, I found the urls.py should in this > format (r'^$', 'app.views.main_page'), > > But, it still does not work. By "does not work", do you mean that it raised exactly the same error? If so, I suspect that isn't the line that was originally causing the problem, but that sort of change is certainly one way to work around the problem in #2875. To work around the exception you're reporting, you need to make sure there is at least one dot ('.') in the view name. Regards, Malcolm > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---