As far as breakpoints go, realize that you can only use them from
the development server ("python manage.py runserver"), and that
pdb shows up in the terminal where you ran that command, and
it must still be showing.
But since the data isn't in the expected format in the database, the
particular
Well i put this if and following import & trace to several places, but
all i got was the 500 error and pdb prompt did not show up.
If you could provide me with exact info of where to put this trace in
djang 1.2. beta 1 admin_list.py... then it would be really nice :P
Alan
--
You received this
Hi
On Apr 30, 6:54 pm, Bill Freeman wrote:
> Just to be clear, the entity coding exists in the database? It's a unicode
> or byte string containing sequences beginning with ampersand, ending
> with semi colon, having just lowercase English letters between them?
Actually my
Just to be clear, the entity coding exists in the database? It's a unicode
or byte string containing sequences beginning with ampersand, ending
with semi colon, having just lowercase English letters between them?
Because, if so, by the time it gets to items_for_result() (I think) in
I dont use any cms. I use few third party plugins like django-tinymce,
sorl-thumbnail, django-tagging and django-tagging-autocomplete and
thats it.
I checked how the stuff is stored in the database and its exactly the
same html it prints out on the pages. Letters like äöõü are all
in the
I don't have time to look in detail right now, but if you're using
pages cms, try
putting:
PAGE_SANITIZE_USER_INPUT = False
in your settings.py (after or in place of anywhere you set it True).
The last time
I got this it was due to a bug in the sanitize stuff in that it
converted perfectly
valid
Buh... took me a while to get around to do it. After first installing
the django trunk it revealed another problem first though. Not sure if
this can be the cause or not?
The problem was django tinymce import error. In django tinymce widgets
line 14 there was
from django.forms.util import
I like the idea of getting a full stack trace using python 2.5
I don't know what you platform is, but at least on linux (and similar systems)
you can easily install multiple versions of python without causing trouble*.
You grab the sources, do a make, and then, instead of doing make install,
you
Okay. I will try to test it in the way suggested by Bill and Karen.
This will take me some time though. Hopefully you will be able to keep
track of this thread even though it will get pushed to later pages
when new threads are created.
Alan
On Apr 15, 10:52 pm, Karen Tracey
On Thu, Apr 15, 2010 at 3:48 PM, Bill Freeman wrote:
> Sadly, the problem string doesn't occur at the top level of any of those
> local
> vars. It was worth a shot. It's probably in the context.
>
> If I were you, I'd go find the raise wrapped... in debug.py down at the
>
Sadly, the problem string doesn't occur at the top level of any of those local
vars. It was worth a shot. It's probably in the context.
If I were you, I'd go find the raise wrapped... in debug.py down at the bottom
of the stack trace, and stick a pdb.set_trace() there. Then (assuming you
do
On Apr 15, 10:13 pm, Bill Freeman wrote:
> Got it. It's an inclusion tag with templage change_list_results.html
> . I don't see
> anything suspicious in it. The only things that get rendered are
> rendered simply,
> as just a template variable reference, except for
Got it. It's an inclusion tag with templage change_list_results.html
. I don't see
anything suspicious in it. The only things that get rendered are
rendered simply,
as just a template variable reference, except for "header.txt" which is filtered
through capfirst. I'm unaware of any of those
class Retsept(models.Model):
name = models.CharField(max_length=100, verbose_name=_("Name"),
blank=False, null=False)
user = models.ForeignKey(User)
image = RemovableImageField(upload_to=content_file_name, blank=True,
null=True, verbose_name=_("Image"))
about =
On Apr 15, 7:52 pm, Bill Freeman wrote:
> I don't find it on
> http://docs.djangoproject.com/en/1.1/ref/templates/builtins/.
No, it's not a builtin, it's part of the default admin - it renders
the changelist.
--
DR.
--
You received this message because you are subscribed to
Well i already posted the model and i posted the form. The form is
used in a view like this:
rform = RetseptForm(request.POST, request.FILES, instance=retsept)
if request.method == 'POST':
if rform.is_valid():
rform.save()
And thats it
Alan
On Apr
I don't find it on
http://docs.djangoproject.com/en/1.1/ref/templates/builtins/ .
It may be provided by one of your installed apps. What {% load ... %} tags
are there in the template?
On Thu, Apr 15, 2010 at 2:32 PM, Daniel Roseman wrote:
> On Apr 15, 4:54 pm, zayatzz
On Apr 15, 4:54 pm, zayatzz wrote:
> Hello
>
> I recieve this kind of error message when in admin:
>
> Caught an exception while rendering: ('ascii', 'Madalal temperatuuril k
> \xc3\xbcpsetatud stressivaba sea parim t\xc3\xbckk', 23, 24, 'ordinal
> not in range(128)')
>
I think its standard tag. I have not added any tags in this project
and this string (result_list) does not exist in any of the pluggable
stuff (tagging, tinymce, sorl thumbnail). This string does exist in
django/contrib/admin/templatetags/admin_list.py though.
Alan
On Apr 15, 9:07 pm, Bill
The problem is reported at line 78 of the template, which uses a tag
named "result_list". That isn't one of the standard tags. Where does
it come from? Can you provide the source code?
Bill
On Thu, Apr 15, 2010 at 1:59 PM, zayatzz wrote:
> Header is like that:
>
>
Header is like that:
http://www.w3.org/1999/xhtml;>
and database is:
MySQL charset: UTF-8 Unicode (utf8)
and collation is utf8_unicode_ci
Whole traceback is:
TemplateSyntaxError at /admin/retsept/vote/
Caught an exception while rendering: ('ascii', 'Sea\xc5\xa1a\xc5\xa1l
\xc3\xb5kk ', 3, 4,
On Thu, Apr 15, 2010 at 11:54 AM, zayatzz wrote:
> Hello
>
> I recieve this kind of error message when in admin:
>
When doing what, exactly, in admin?
> Caught an exception while rendering: ('ascii', 'Madalal temperatuuril k
> \xc3\xbcpsetatud stressivaba sea parim
We probably need to see the template, and/or the full stack trace.
Or maybe the default characterset is declared incorrectly.
I think that something is trying to convert a unicode object to an
ascii object (because perhaps the default character set is ascii),
and characters like these don't have
23 matches
Mail list logo