Re: anti-join query in Django

2011-11-19 Thread Russell Keith-Magee
On Sat, Nov 19, 2011 at 8:41 AM, dmitry b wrote: > Is there a recommended approach to anti-join queries?  Here's the > query I'm having an issue with: > > Branch.objects.filter(branchgroup__isnull=True)[:1] > > where branchgroup is a ManytoMany relationship to another model.  I > want to get a set

Re: ImportError: No module named django

2011-11-19 Thread Jenny
Thank you Furbee. I will try later to to put the unpacked Django in the same folder as setup.py folder. I'll be back soon with the result. On 18 Nov, 23:02, Furbee wrote: > You can get to the python interactive interpreter by typing "python" into a > Dos shell, as long as the python executable is

Re: ImportError: No module named django

2011-11-19 Thread Tim Makobu
Hi, Also, If you haven't read ALL of this yet http://docs.python.org/tutorial/index.html go ahead and do so. On Sat, Nov 19, 2011 at 2:29 PM, Jenny wrote: > Thank you Furbee. I will try later to to put the unpacked Django in > the same folder as setup.py folder. I'll be back soon with the > re

Re: Different sub-domain for each app

2011-11-19 Thread Tim Makobu
I think i found it: https://github.com/playfire/django-dynamic-subdomains/ On Fri, Nov 18, 2011 at 8:08 PM, Tim Makobu wrote: > Hi all, > > I have one domain, for example, adomain.com, and one django project. > > I plan to have each app serve a subdomain, like blog.adomain.com served > by the b

Re: Different sub-domain for each app

2011-11-19 Thread Daniel Geržo
On 18.11.2011 18:08, Tim Makobu wrote: Hi all, I have one domain, for example, adomain.com , and one django project. I plan to have each app serve a subdomain, like blog.adomain.com served by the blog app, and catalogue.adomain.com

Re: Different sub-domain for each app

2011-11-19 Thread Tim Makobu
much better. On Sat, Nov 19, 2011 at 10:53 PM, Daniel Geržo wrote: > On 18.11.2011 18:08, Tim Makobu wrote: > >> Hi all, >> >> I have one domain, for example, adomain.com , and >> >> one django project. >> >> I plan to have each app serve a subdomain, like blog.adomain.com >>

Re: Error with LayerMapping utility import into Postgresql 9.1

2011-11-19 Thread Henry
Daniel YOU are the man! Thanks much! -- 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 this group, send email to django-users+unsubscr...@googlegroups.com. Fo

Re: logging django errors also on the server

2011-11-19 Thread Gelonida N
On 09/05/2011 12:58 AM, Gelonida N wrote: > Hi, > > Im am debugging a django application. > > If I set DEBUG=True > then I can see error messages on the browser. > > Is there any way to see the same error messages in the server log file? > Occasionally (especially for rpc client or Ajax request

Re: logging django errors also on the server

2011-11-19 Thread Gelonida N
Hi Uros, On 09/05/2011 03:37 PM, Uros Trebec wrote: > Take a look at Sentry: http://readthedocs.org/docs/sentry/ > > It works pretty well, uses polling to update the log view, can track > multiple sites with separate Sentry Server, etc. This looks like an option, but it is doing much more than I

Re: logging django errors also on the server

2011-11-19 Thread Gelonida N
On 11/19/2011 10:26 PM, Gelonida N wrote: > On 09/05/2011 12:58 AM, Gelonida N wrote: >> >> Im am debugging a django application. >> >> If I set DEBUG=True >> then I can see error messages on the browser. >> >> Is there any way to see the same error messages in the server log file? > I am using

will an empty middleware class consume any time (except during initial import?)

2011-11-19 Thread Gelonida N
Just out of curiousity, Let's assume I add a middleware in settings.MIDDLEWARE_CLASSES and the middleware class is empty. (just a pass statement) Will it consume any CPU time while handling a request? To rephrase my question. Is it at startup, that Django checks which methods a middleware impl

Error 500 instead of 404

2011-11-19 Thread Ricardo F. Teixeira
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 returns me a 404 error page, but if I set DEBUG to False it