OK I found a clue regarding that issue:
print(sys.getfilesystemencoding()) at the console prompt produces
'UTF-8' whereas in the failing script ' ANSI_X3.4-1968'. I now
understand why the conversion fails (in that case Python returns a
byte string and this is not documented in Python doc).
Is the
hi,
I have been using django-transmeta for some years, but I now find it is
not maintained from mid march 2011 and breaks with later django
versions. I am now thinking of switching to django-modeltranslation
which is actively maintained and looks good - any opinions and
experiences?
--
regards
Ke
In one of my django application I’m using transmeta for switching
between the languages. This transmeta is not working when I use my
application with mysql, but if I use the same source code with sqlite
transmeta will work perfectly. So what may be the cause with mysql?
Thanks in advance
Regards
hi.
I have a forms.ChoiceField , I want with a queryset field value.
thank
--
http://szxatjp.blog.163.com/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email t
Hi,
I have installed the laterst development version of django using
svn. but when i try to start a project i still get the flat layout (no
inner directories) and the tutorial says that happens only if i am
using the old project (release). I ran into a few problems when trying
to syncdb i was w
On Sun, Nov 20, 2011 at 12:05 PM, Petr Přikryl wrote:
> I tried the tutorial, and I like it, but it is too much of new things
> for me.
but all these new things are needed to solve your problem.
for us (or anybody) to help you, we'd need first a common language, or
else we would waste lots of ti
Hi William,
You might want to give a bit more advanced notice when doing online
presentations/meetings.. It's not unusual to give 7 days notice.. 48 hours
is usually the minimum.. Also 10am EST is not very 'timezone friendly'..
Usually the best is around 6pm GMT (10am PST, 2pm EST), as everyone is
I disagree. I think this (here) is a good place to ask. I am a beginner in
Django,
but I am advanced in Python. The truth is that os.listdir() with unicode
argument should return unicode strings (and it really does when
executed at console -- which is also the case of running local server
throug
Hi,
no problem.
> Thanks a lot. Yes this is definitely an option if source and target host
> the same database engine.
>
>
> The reason why would I like to avoid this approach and why I tried to
> stick with django commands is, that above approach will not work if I
> want to dump a postgres d
Hi Ivo,
On 11/20/2011 09:29 PM, Ivo Brodien wrote:
> hi,
>
> on MYSQL I just do this to copy a MySQL DB to my local machine which runs in
> MAMP on Mac OS X.
>
> Something similar should be possible with PostgreSQL as well.
>
> ssh USERNAME@SERVER "mysqldump -u USERNAME_REMOTE -p'DB_PASSWORD_R
hi,
on MYSQL I just do this to copy a MySQL DB to my local machine which runs in
MAMP on Mac OS X.
Something similar should be possible with PostgreSQL as well.
ssh USERNAME@SERVER "mysqldump -u USERNAME_REMOTE -p'DB_PASSWORD_REMOTE'
--single-transaction DB_NAME | gzip -c" | gunzip -c |
/Appl
You may get more appropriate responses on the python-list mailing
list, as this is not really a django question, but a python one.
http://mail.python.org/mailman/listinfo/python-list
On Sun, Nov 20, 2011 at 12:57 PM, Marc wrote:
> Hello,
>
> I have an application that uses os.listdir(u'some path
Hello,
I have an application that uses os.listdir(u'some path') that should
return a list of unicode strings.
This works fine as long as I use the manage.py runserver server.
As soon as I deploy on Apache with mod_wsgi, I get the Caught
UnicodeDecodeError while rendering: 'ascii' codec can't dec
is this a design decision?
i would expect that csrf 403 errors are as important as 404/500 and
reported by default.
anybody using some custom settings to log csrf errors?
what's your experience with logging csrf errors?
Aljosa
--
You received this message because you are subscribed to the Google
When I was debugging a similar problem the most helpful test I ran was
to isolate the problem to either the client or the browser by
configuring the server logs to show if the cookies we actually sent. I
did this by reconfiguring my Apache logs (I think), but I'm not sure
how to do that with the ru
On 11/20/2011 06:37 PM, Gelonida N wrote:
> Hi,
>
> I for debugging purposes I'd like to clone the data base of one machine
> to another one. (both are not necessarily using the same data base engine)
>
> What would be the suggested procedure?
>
> What I tried, but what failed is following:
>
>
Hi,
I for debugging purposes I'd like to clone the data base of one machine
to another one. (both are not necessarily using the same data base engine)
What would be the suggested procedure?
What I tried, but what failed is following:
1.) On the remote machine
./manage.py dumpdata > dumpall.json
I use the following code that I got from a django snippet, which works
great if you want to have radio buttons with different types of fields
associated with them
from django import forms
from django.utils.encoding import for
Hi,
I have a table with the following columns: code, location, description.
The code uniquely identifies the goods. The description is related to
the location. You can think about a state as the location.
I like the view produced via admin -- like this:
CodeLocation Description
[ ]
Hi, just FYI I started a pure python memcached module with SASL auth,
so it can be used in Heroku.
https://github.com/jaysonsantos/python-binary-memcached
Any help will be appreciated.
Thank you
Jayson Reis
On Nov 18, 6:11 pm, Jayson Reis wrote:
> For me worked with a snippet i've added in settin
Solved (!) by creating those template files.
Thanks Tomek!
On Nov 20, 9:28 am, Tomek Paczkowski wrote:
> If you dont have 404.html file, than Django will raise exception that
> 404.html is not found. Next, if you dont have 500.html your exception is
> generating new exception on lack of 500.html.
On Tue, Nov 15, 2011 at 11:49 AM, Tom Evans wrote:
> FreeBSD on EC2 (Xen) is not exactly simple or stable though (and I'm a
> huge FreeBSD advocate!). The current stable way is to setup a windows
> instance, and then replace the hard drive image with a FreeBSD one,
> which is run under Xen's HVM r
EST
On Sun, Nov 20, 2011 at 8:49 AM, Tim Makobu wrote:
> Which timezone?
>
> On Sun, Nov 20, 2011 at 2:25 PM, william ratcliff <
> william.ratcl...@gmail.com> wrote:
>
>> For anyone interested in discussing Django basics, join us today at 10am
>> at:
>> http://meet83755466.adobeconnect.com/django
Which timezone?
On Sun, Nov 20, 2011 at 2:25 PM, william ratcliff <
william.ratcl...@gmail.com> wrote:
> For anyone interested in discussing Django basics, join us today at 10am
> at:
> http://meet83755466.adobeconnect.com/django-for-beginners/
>
> I may have to limit participation (btw. it's fre
Does anyone know if this progressed anywhere since '09?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/0fmsTMQC_tAJ.
To post to this group, send email to d
For anyone interested in discussing Django basics, join us today at 10am at:
http://meet83755466.adobeconnect.com/django-for-beginners/
I may have to limit participation (btw. it's free)...
Best,
William
--
You received this message because you are subscribed to the Google Groups
"Django users
I type wrong in view.py, causing the problem.
Have been solve this.
On Nov 20, 2:32 am, Tsung-Hsien wrote:
> The error does not show on Django, but firebug shows the error.
> I refer "Django 1.0 Web Site Development" and use the jQuery code
> below:
>
> function bookmark_save() {
> var it
The error does not show on Django, but firebug shows the error.
I refer "Django 1.0 Web Site Development" and use the jQuery code
below:
function bookmark_save() {
var item = $(this).parent();
var data = {
url: item.find("#id_url").val(),
title: ite
If you dont have 404.html file, than Django will raise exception that
404.html is not found. Next, if you dont have 500.html your exception is
generating new exception on lack of 500.html. Make sure you have both
files. Eg:
$ touch templates/{404,500}.html
--
You received this message because
On 20/11/2011 07:56 πμ, Ricardo F. Teixeira wrote:
Hello everybody!
I'm having a strange error.
I already searched for this error and there's quite a lot of
discussion about it. But I didn't find a proper answer that fits me.
So... when I set DEBUG to True and access an invalid URL Django
return
30 matches
Mail list logo