Re: UnicodeDecodeError

2012-01-05 Thread Simon Holness
I would hazard a guess that your index.html file is actually not ascii or utf-8 but some other encoding - probably cp1252 0x93 in cp1252 is a "smart quote" ( see http://en.wikipedia.org/wiki/Windows-1252 ) so that would look like it fits with the line quoted below. Open it in an editor that

Re: writing HTML Code into Template with render_to_response: How?

2010-08-25 Thread Simon Holness
Use the "safe" filter to disable the auto-escaping that templates apply to all variables: http://docs.djangoproject.com/en/1.2/ref/templates/builtins/#safe -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: NotImplementedException when trying to log user in after registration

2010-07-23 Thread Simon Holness
Your authentication has failed somehow and authenticate() has returned an AnonymousUser object. calling .save() on this raises the exception (code = http://code.djangoproject.com/browser/django/trunk/django/contrib/auth/models.py#L399 ) On 22 July 2010 23:33, Jeff

Re: Newbie Question: Syntax Error - Form Class, trying to set e-mail field to required=False

2010-07-22 Thread Simon Holness
"e-mail" can't have a hyphen in it. Python thinks you're "assigning" to the operation e - mail just type into a shell to see. e-mail = "blah" SyntaxError: can't assign to operator rename to e_mail or email or something and you should be good to go On 22 July 2010 06:10, strayhand

Re: GAE + Django Authentication

2010-07-20 Thread Simon Holness
2nd Vote for Nonrel http://www.allbuttonspressed.com/projects/django-nonrel If you'd prefer not to use that, there's also Google's App Engine Helper for Django - http://code.google.com/p/google-app-engine-django/ http://code.google.com/appengine/articles/appengine_helper_for_django.html But