On Sun, Apr 25, 2010 at 1:07 PM, Sheena <[email protected]> wrote:

> I've been experiencing some strange problems with my admin site. I
> defined a few simple models and got Django to talk to an sqlite db
> sucessfully, I have no problem adding and removing table entries
> through the shell. I then activated the admin site and added my
> models. I can manage users and all the standard stuff without any
> problems but when it comes to my own models Django complains bitterly.
> While my db has no entries I can view all the tables by clicking on
> the appropriate links and I have access to the 'add' forms but as soon
> as I try to save anything I get an exception with the  value
> 'unsupported format character 'S' (0x53) at index 1'. So I tried to
> see if I could view table entries through the admin site by stopping
> the server and adding some random data with the shell, now I get the
> same exception just for trying to view a table.
>
> Here's the traceback stuff from when I try to view existing table
> entries, the error page says the problem is at the line marked 78:
>
> Environment:
>
> Request Method: GET
> Request URL: http://127.0.0.1:8000/admin/blah/blah/
> Django Version: 1.1.1
> Python Version: 2.6.4
>

Unfortunately when using Django 1.1.1 and Python 2.6 or higher, template
errors like this are missing the real end of the traceback, which would
indicate what line of code is really causing the problem. However it looks
like you have a __unicode__ method that is using a capital S in  a format
string instead of a lower case s, so that would be one thing to look for.

Karen

p.s. The problem with the missing end-of-traceback when running under Python
2.6 or higher is fixed in current SVN for both the 1.1.X branch and 1.2.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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.

Reply via email to