Re: Site wide date format

2008-07-16 Thread web-junkie
Wouldn't it be useful to use that setting as a default for the date filter, so you wouldn't need to specify a format every time? I could write a patch.. On 15 Jul., 15:31, Arien <[EMAIL PROTECTED]> wrote: > On Tue, Jul 15, 2008 at 8:14 AM, Adam Peacock <[EMAIL PROTECTED]> wrote: > > > I'm looking

Re: What is reverse() good for? Not really reversing...

2008-05-06 Thread web-junkie
ne an so on.. that has nothing to do with how it sould execute SQL so I don't know why I should state any SQL here. On 2 Mai, 17:51, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Fri, May 2, 2008 at 11:11 AM, web-junkie <[EMAIL PROTECTED]> wrote: > > > On 1

Re: What is reverse() good for? Not really reversing...

2008-05-06 Thread web-junkie
That is what I do at the moment, putting it in a list in such an order that it is reversed. On 2 Mai, 19:58, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote: > On Thu, 2008-05-01 at 09:36 -0700, web-junkie wrote: > > Hi, > > > what is the newreverse() method

Re: What is reverse() good for? Not really reversing...

2008-05-02 Thread web-junkie
[:3] > a.reverse() > > That would probably be my solution. > >   -justin > > > > > > On Thu, May 1, 2008 at 12:36 PM, web-junkie <[EMAIL PROTECTED]> wrote: > > > Hi, > > > what is the new reverse() method good for? Seems it just swaps the > >

What is reverse() good for? Not really reversing...

2008-05-01 Thread web-junkie
Hi, what is the new reverse() method good for? Seems it just swaps the order_by statement? I would appreciate a reverse() method that, if used after slicing, would actually reverse the queryset. In the docs it's said: "Django doesn’t support that mode of access (slicing from the end), because it’

Whitespace handling in newforms modelforms

2008-02-18 Thread web-junkie
Hi, why isn't whitespace automatically stripped from fields when using modelforms? This would be convenient. Is there a reason for not doing so, where is one supposed to do that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: run multiple django app's on server

2008-01-30 Thread web-junkie
That did it for me too, thanks! On Jan 30, 3:29 pm, prz <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > That's the weird thing, > > > If we restart httpd.conf the python code will be compiled in some > > cases it will show one of the projects for both ports and in a other > > case it wi

Re: run multiple django app's on server

2008-01-30 Thread web-junkie
I have kinda the same problem as of today. It just seems to not use use the settings file I want. Is there something wrong with having to exact same virtualhosts that just differ in the specified django settings? On Jan 30, 2:18 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello Django Us

Re: Problem with memcached after many hits

2007-10-30 Thread web-junkie
-developers/browse_thread/thread/f83eb95f35c9d9a which should be the same issue. The fix was to upgrade mod_python (had to switch from a stable to testing on my Debian). So, yeah, should be fixed now. Weird issue. On Oct 30, 9:51 am, web-junkie <[EMAIL PROTECTED]> wrote: > Hi, > I

Re: Problem with memcached after many hits

2007-10-30 Thread web-junkie
Oh, and I'm running exactly one Django site on the server. --~--~-~--~~~---~--~~ 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.com To unsubscribe from

Re: Problem with memcached after many hits

2007-10-30 Thread web-junkie
On Oct 30, 11:30 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > Are you using Apache prefork MPM or worker MPM? If worker, how many > threads in each process? Also, what do you have for maximum number of > child processes in Apache configuration. Finally, how many Django > instances are you hos

Problem with memcached after many hits

2007-10-30 Thread web-junkie
Hi, I have a weird problem where I think memcached or caching in general might be the cause. I discovered it during testing the site with http_load. After a certain amount of fetches, or hits, to the server, the site does not respond normally. It takes 30 seconds or so. Strange thing is: Only for

Re: which Django version to use for live site to be released in end of february 2008

2007-10-26 Thread web-junkie
We are running a production site with trunk. No problems so far. Just watch any updates and update regularly. On Oct 23, 5:00 pm, ydjango <[EMAIL PROTECTED]> wrote: > I am working on product which will be released end of february. I am > planning to use Django for building the site. I am new to D

Re: 0.96 login issue with cookies

2007-10-19 Thread web-junkie
Did you activate the cache in Django? I once discovered an issue with that.. --~--~-~--~~~---~--~~ 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.com T

Problem with query on m2m relation

2007-10-19 Thread web-junkie
Hi, I have a m2m relationship from books to authors. A book can have 0-n authors (yes, don't ask why there can be no authors). If I want to do a search where I it should match the title or authors, I just gives me books that have an author. Not the other matches. See here for the code: http://dp

Re: Error from URLs with non-ascii characters and that need login

2007-09-02 Thread web-junkie
Okay, I did that. http://code.djangoproject.com/ticket/5308 On Aug 14, 11:09 am, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-08-10 at 05:05 -0700, web-junkie wrote: > > Okay, after further investigation the error appears for me too, not > > just googlebot. W

Re: Error from URLs with non-ascii characters and that need login

2007-08-10 Thread web-junkie
Okay, after further investigation the error appears for me too, not just googlebot. When I browse the site as anonymous user and click a link with encoded Unicode in URL, and if that links needs login, I get an error. Seems to be a bug in the checklogin decorator. On Aug 8, 3:34 pm, web-junkie

Error from URLs with non-ascii characters and that need login

2007-08-08 Thread web-junkie
Hi, I get that error emailed, apparently Google tries to crawl pages that need a login. Now when there's Unicode in the URL this error is raised. Can anyone tell me why I get this error? It's really just Google's crawl, when I surf the site everything works fine. Traceback (most recent call last

Re: Feeds don't work with Unicode URLs

2007-07-06 Thread web-junkie
On Jul 6, 4:44 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-07-06 at 07:25 -0700, web-junkie wrote: > > Thanks for your reply. I'll give more information: > > > # c:\django_src\django\core\handlers\base.py in get_response > >

Re: Feeds don't work with Unicode URLs

2007-07-06 Thread web-junkie
assed to the feed object from request.path On Jul 6, 4:00 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Fri, 2007-07-06 at 06:51 -0700, web-junkie wrote: > > Hi, I have a problem of getting my feeds to work with unicode URLs. > > > File "/usr/local/lib/pytho

Feeds don't work with Unicode URLs

2007-07-06 Thread web-junkie
Hi, I have a problem of getting my feeds to work with unicode URLs. File "/usr/local/lib/python2.4/site-packages/django/contrib/ syndication/feeds.py", line 12, in add_domain url = u'http://%s%s' % (domain, url) UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 19: ordinal

Re: Error from JSON serializer

2007-07-05 Thread web-junkie
okay, seems this ensure_ascii=False is useless, without it there's no error. On 5 Jul., 14:13, web-junkie <[EMAIL PROTECTED]> wrote: > Hi, > > after updating to the trunk with the merged Unicode branch I get > errors for my json pages. Everything is normal until I reque

Error from JSON serializer

2007-07-05 Thread web-junkie
Hi, after updating to the trunk with the merged Unicode branch I get errors for my json pages. Everything is normal until I request something where it would serialize data with foreign language letters which comes as Unicode from the database. And as far as I can tell I have done everything it sa

Re: json serializing without certain fields

2007-06-01 Thread web-junkie
Sorry for being a littly bit offensive. Thanks for your replies and for commiting the patches, works like a charm now. On Jun 1, 3:44 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > On 6/1/07, web-junkie <[EMAIL PROTECTED]> wrote: > > > > > Hi

json serializing without certain fields

2007-06-01 Thread web-junkie
Hi how can I get JSON out of my Django object without having certain fields in there for obvious reasons? I found solutions like serializers.serialize("json", Something.objects.all(), fields='myfield' ) which do not work, there's also a ticket on that http://code.djangoproject.com/ticket/3466 Why