Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-02-01 Thread John Abraham
I get the same error in the admin interface after manually removing a field from one of my classes. I removed it in models.py and in the database. The class in question works fine, but for some reason a dependent class (one that refers to the other with a foreign key) has it's admin form broken.

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Karen Tracey
On Sun, Jan 31, 2010 at 2:39 PM, Martin J. Laubach > wrote: > > 1.(r'^admin/', include(admin.site.urls)), > > That looks like it. > No, that is the correct way to specify admin urls for 1.1 and up. No quotes around admin.site.urls. One way the reported error can happen is when what is in

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Martin J. Laubach
> 1.    (r'^admin/', include(admin.site.urls)), That looks like it. > I tried putting include('admin.site.urls')) but it could not find > 'admin.site.urls' Do you have 'django.contrib.admin' in INSTALLED_APPS? mjl -- You received this message because you are subscribed to the Goog

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread zweb
In my urls.py I see only two possible places where I do not have quotes, 1.(r'^admin/', include(admin.site.urls)), I tried putting include('admin.site.urls')) but it could not find 'admin.site.urls' 2. (r'^register/$', register,{'opensource':True}), True is not in quotes. But it is workin

Re: TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread Martin J. Laubach
> Caught an exception while rendering: 'module' object has no attribute > 'rindex' Sounds you are using foo.bar instead of 'foo.bar' somewhere (ie. module instead of string). mjl -- You received this message because you are subscribed to the Google Groups "Django users" group. To pos

TemplateSyntaxError at /admin/ - 'module' object has no attribute 'rindex'

2010-01-31 Thread zweb
after login to admin, now I get this error, any clues on what to look for? using django 1.1.1 Ashish TemplateSyntaxError at /admin/ Caught an exception while rendering: 'module' object has no attribute 'rindex' Original Traceback (most recent call last): File "/Library/Python/2.5/site-packa