> What version of Django are you using?  The use of max_length instead of
> maxlength implies something later than 0.96 but the use of 'class Admin'
> implies something before 1.0.  If you are using 1.0 or later 'class Admin'
> is not how admin defs are specified any more, see the admin doc for the
> current way.
>
> Karen

Hi Karen -

I'm using 1.0.  I took out the class admin and added an admin.py file
as follows:


from learn.testimonials.models import Testimonial
from django.contrib import admin

admin.site.register(Testimonial)



I restarted apache and got this error:

TemplateSyntaxError at /admin/

Caught an exception while rendering: Tried RandomTesti in module
testimonials.views. Error was: 'module' object has no attribute
'RandomTesti'



RandomTesti is a customized template tag I've created for use in the
site.


Can you help me figure this out? What information do you need?

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to