Hi
I am having trouble mocking querysets which contains slice. Example
qs =
Thread.objects.filter(some_filter).order_by(some_order')[:app_settings.SEARCH_LIMIT]
And in my test I have:
Thread.objects.assert_has_calls([
mock.call.filter('some_filter'),
mock.call.filter()
At the moment I am experiencing difficulties with Django session
middleware. For some reason, my keys (and with them my objects) are
vanishing from the session. Code, in which changes are made, is
really
simple and straightforward, and it isn't problem in code. Also, I use
session only in this
Hi, I have this few line of code:
parametar = msgid=1###userid=1102###nav_status=1###rot=100.0###sog=10.0
params = urllib.urlencode({'report': parametar})
conn = httplib.HTTPConnection("localhost:8000")
conn.request("POST", "/proba/", params, headers)
reportHTTP = conn.getresponse().read()
And I
Croatian language has many declination rules, and therefore, only two
meta rules (verbose_name and verbose_name_plural) aren't enough. Can
I somehow modified translation rules, and have exact model word on
exact admin pages. for example, if model name is 'robot', can i have
'dodaj robota' on fi
On 4/23/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Are you using .96 or SVN?
0.96
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@go
I am getting UnicodeDecodeError, 'ascii' codec can't decode byte 0xc4.
I using utf-8 in forms.py, and also, my template is saved as UTF-8.
And it doesn't work. Any ideas?
This is part of my forms.py
--
# -*- coding: utf-8 -*-
CHOICES1 = (
('child', 'Dječja'),
On 4/15/08, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
> Also you said you "translated Django". Since Django already has a
> Croation translation in trunk, does that work properly?
The problem was in PYTHONPATH :-/ Django root wasn't in PYTHONPATH.
--~--~-~--~~~---
I recently translated Django on croatian language, it works like a
charm, but only on my computer? :) Today when I deployed application
to server, hr localization didn't worked. In settings.py I have 'hr'
just like I have at my home. Folder 'hr' is at right place, and, what
is very important,
Hello
How do you handle situations like this one:
http://img209.imageshack.us/img209/9596/a1se8.jpg
When you have a grid of input fields, and every one can generate
error, and, of course, you don't wanna more than one row of errors in
your table. If I check conditions directly in template, I ca
Hello
I did localization for croatian language. Where do I send .po files?
Tnx.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.
10 matches
Mail list logo