y modelForm does nothing, just defines a model at Meta with all fields.
> My CreateView is just defined with all default values, not overriding
> anything.
> When submitting the form, the server returns 500 if 'nome' or 'sobrenome'
> fields have accent letters lik
a with all fields.
My CreateView is just defined with all default values, not overriding anything.
When submitting the form, the server returns 500 if 'nome' or 'sobrenome'
fields have accent letters like Á, é, í, ç. etc.
The error:
'ascii' codec can't encode
cent letters like Á, é, í, ç. etc.
The error:
'ascii' codec can't encode character '\xe9' in position 4: ordinal not in
range(128)
with character depending on user input.
I am using sqlite for db and the pragma encoding returns utf8.
I don't know how to deal with it.
A
> Hola amigos, me podrían ayudar aresolver este error:
>
> UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position
> 7: ordinal not in range(128)}
>
> Esto me paso cuando estaba creando el super usuario en django
>
> --
> Y
Hola amigos, me podrían ayudar aresolver este error:
UnicodeEncodeError: 'ascii' codec can't encode character '\xf3' in position
7: ordinal not in range(128)}
Esto me paso cuando estaba creando el super usuario en django
--
You received this message because you are
On Thu, 2012-06-14 at 08:26 -0700, bruno desthuilliers wrote:
> > apache + wsgi
> >
>
>
> Ok, so that's the same setup we use... Are you/they using the
> WSGIDaemonProcess and WSGIProcessGroup directives ? (I bet they do if
> it's
> shared hosting and they know what's good for them).
yes
> B
Hi there,
I have faced this kind of error a couple of times when the local wasn't
correctly set on the system.
Within the python interpreter it was C (ie ascii) where it should have been
UTF8.
Up to now, all have been resolved by correctly setting the locals system wide
and within the web serv
On Thu, 2012-06-14 at 23:46 +0200, Hendrik Speidel wrote:
> as an alternative you can provide your own Storage implementation like
> outlined here:
>
> http://source.mihelac.org/2011/02/6/rename-uploaded-files-ascii-character-set-django/
>
>
I have told the client to use only ascii for the time
ds/files.py"
> in pre_save
> 249. file.save(file.name <http://file.name>, file,
> save=False)
> File
>
> "/home/kenyakids/webapps/django/lib/python2.7/django/db/models/fields/files.py"
> in save
> 86. self.na
jango/lib/python2.7/django/db/models/fields/files.py"
>
> in pre_save
> 249. file.save(file.name, file, save=False)
> File
> "/home/kenyakids/webapps/django/lib/python2.7/django/db/models/fields/files.py"
>
> in save
> 86. self.n
On Thursday, June 14, 2012 1:58:28 PM UTC+2, lawgon wrote:
>
> On Thu, 2012-06-14 at 04:19 -0700, bruno desthuilliers wrote:
> > > I have an application which runs on a webfaction hosting.
> >
> >
> >
> > How is it deployed exactly ?
>
> apache + wsgi
>
Ok, so that's the same setup we us
On Thu, 2012-06-14 at 04:19 -0700, bruno desthuilliers wrote:
> > I have an application which runs on a webfaction hosting.
>
>
>
> How is it deployed exactly ?
apache + wsgi
> (sorry never used webfaction hosting for django - nor for anything
> else
> FWIW)
not my choice, client choice
>
On Thursday, June 14, 2012 12:35:40 PM UTC+2, lawgon wrote:
>
> hi,
>
> I have an application which runs on a webfaction hosting.
How is it deployed exactly ?
(sorry never used webfaction hosting for django - nor for anything else
FWIW)
> I also have
> the same app running on my devel m
e/files/storage.py" in
get_available_name
70. while self.exists(name):
File
"/home/kenyakids/webapps/django/lib/python2.7/django/core/files/storage.py" in
exists
230. return os.path.exists(self.path(name))
File "/usr/local/lib/python2.7/genericpat
a
> model called Sponsor. If I give
>
> print item.sponsor, I get:
> Kumpumäki Raili 21755
> print item.sponsor.lname, I get:
> 'ascii' codec can't encode character u'\xe4' in position 6: ordinal not
> in range(128)
>
> I am using postgres, and I hav
hi,
I am doing some work in Finnish using django trunk. The code works fine
in the shell. But on the web, I am getting a strange error. I have a
model called Sponsor. If I give
print item.sponsor, I get:
Kumpumäki Raili 21755
print item.sponsor.lname, I get:
'ascii' codec can't e
> > debug %} template tag to one of my templates (no other changes), I get
> > the following error message:
>
> > TemplateSyntaxError at /art/
>
> > Caught an exception while rendering: 'ascii' codec can't encode
> > character u'\u2019' in
or at /art/
>
> Caught an exception while rendering: 'ascii' codec can't encode
> character u'\u2019' in position 19: ordinal not in range(128)
>
> I haven't used the debug tag before, and googleing the error message
> didn't bring up anything useful
Oh, I should probably add that I am using
# coding=utf-8
on some of my source files, because they contain unicode default
values etc.
Flo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To p
Hi all,
I just bumped into a problem I can't resolve: after adding the {%
debug %} template tag to one of my templates (no other changes), I get
the following error message:
TemplateSyntaxError at /art/
Caught an exception while rendering: 'ascii' codec can't encode
ch
20 matches
Mail list logo