Re: Register signal on all objects

2010-01-09 Thread Ishwor Gurung
2010/1/10 Matias <matiassu...@gmail.com>: [...] > Thanks, this will do the trick... Curious. Why doesn't overriding save(..) do for you? -- Regards Ishwor Gurung Key id:0xa98db35e Key fingerprint:FBEF 0D69 6DE1 C72B A5A8 35FE 5A9B F3BB 4E5E 17B5 -- You received this message be

Re: print statements don't show up

2010-01-09 Thread Ishwor Gurung
..] -- Regards Ishwor Gurung Key id:0xa98db35e Key fingerprint:FBEF 0D69 6DE1 C72B A5A8 35FE 5A9B F3BB 4E5E 17B5 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To un

Re: print statements don't show up

2010-01-09 Thread Ishwor Gurung
is done correctly then. Start with the traceback and follow through unwinding gradually. Then move bottom up gradually w.r.t printing. Where did you introduce the print statement in django's core btw? -- Regards Ishwor Gurung Key id:0xa98db35e Key fingerprint:FBEF 0D69 6DE1 C72B A5A8 35FE 5A9B F3BB

Re: print statements don't show up

2010-01-09 Thread Ishwor Gurung
their output...But my print statements aren't being printed to the > Terminal. I've got the runserver running, and I have a print statement > in my urls.py file which HAS to be getting called sometime, but no > print statements. Why? Are you sure your view function is being executed? --

Re: my http://site/admin link

2009-12-05 Thread Ishwor Gurung
gt; > Can any one please help, please also cc to rhce@gmail.com when > ever you answer the query. Register you app with the admin site. http://docs.djangoproject.com/en/dev/intro/tutorial02/#make-the-poll-app-modifiable-in-the-admin -- Regards, Ishwor Gurung -- You received this mess

Re: DB table hook/callback

2009-11-17 Thread Ishwor Gurung
Andy, Hi. 2009/11/17 Andy McKay <a...@clearwind.ca>: > On 09-11-16 9:01 PM, Ishwor Gurung wrote: >> "Django includes a “signal dispatcher” which helps allow decoupled >> applications get notified when actions occur elsewhere in the >> framework." The wor

DB table hook/callback

2009-11-16 Thread Ishwor Gurung
ement but is it even possible?) Maybe I am trying visualizing a bit beyond what Django is capable of hmm.. Any thoughts / suggestions / recommendation? Thanks a lot. [1] http://docs.djangoproject.com/en/dev/topics/signals/ -- Regards, Ishwor Gurung -- You received this message becaus

Re: What would cause an app to not register?

2009-11-16 Thread Ishwor Gurung
int traceback.format_exc( ); -- Regards, Ishwor Gurung -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@

FYI - Django, Python-memcached and memcached saves the day!

2009-11-15 Thread Ishwor Gurung
for k or create a new one and return it. Thank you Django, Python-memcached and memcached itself! -- Regards, Ishwor Gurung -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.

Re: setup python, django for web development

2009-11-15 Thread Ishwor Gurung
/browse_thread/thread/6376673e1f281a8f/88e2cd1f50364610 -- Regards, Ishwor Gurung -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send

Re: Templates,layout, css, ie and Pyjamas

2009-11-09 Thread Ishwor Gurung
me gave a talk on GeoDjango. Twas fun to say the least... > If you ever come to France, I can send you some links on where to > stay. :) Sure nice thing. Thanks. I'll keep note of that :-) -- Regards, Ishwor Gurung --~--~-~--~~~---~--~~ You received this messa

Re: Templates,layout, css, ie and Pyjamas

2009-11-09 Thread Ishwor Gurung
you out for coupla beers ;-) -- Regards, Ishwor Gurung --~--~-~--~~~---~--~~ 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 f

Re: pythonpath on Ubuntu 8.10

2009-03-06 Thread Ishwor Gurung
Hi python_fan wrote: > Hey, > > I have an application that I'm running using Django's built-in server > on both Windows XP and Ubuntu 8.10. While it is wokring perfectly fine > on XP, I get import errors in Ubuntu. When I tried printing pythonpath > on Ubuntu, I managed to locate the problem. It

Re: Three Physical Tiers

2009-03-06 Thread Ishwor Gurung
ruffeo wrote: > I guess my question is how do you call a remote model object on a > different web server using Django MTV framework. I reckon you'd have to use some sort of RPC that translates the call to/from the remote model but I am not sure if Django provides such primitive. Cheers, Ishwor

Re: ImportError: Could not import settings '.settings'.

2009-03-06 Thread Ishwor Gurung
Muslu Yüksektepe wrote: >46 PythonPath "['*/home/hutch/apps/wikinotes/*'] + sys.path" > > > try this code [ ... ] Apache returns 500 with that particular code. Anyway, it works already (see my last post). Thanks in any case. ;) Cheers, Ishwor smime.p7s Description: S/MIME

Re: ImportError: Could not import settings '.settings'.

2009-03-06 Thread Ishwor Gurung
Hi Ishwor Gurung wrote: > Hi [ ] Another follow up (and hopefully last one for the night). The problem was with my mod_python, view and urlconf configs - I changed mod_python directives from what was in the previous to: SetHandler python-program PythonHand

Re: ImportError: Could not import settings '.settings'.

2009-03-06 Thread Ishwor Gurung
Hi Ishwor Gurung wrote: > Hi > I want to run this django app I wrote called wikinotes (its a modified > version of note application to maintain user single user session [1]) > for simple note taking. While the wikinotes works absolutely correctly > using "python manage.py

ImportError: Could not import settings '.settings'.

2009-03-05 Thread Ishwor Gurung
Hi I want to run this django app I wrote called wikinotes (its a modified version of note application to maintain user single user session [1]) for simple note taking. While the wikinotes works absolutely correctly using "python manage.py runserver", it fails to work if i use it with Apache and

Re: Three Physical Tiers

2009-03-04 Thread Ishwor Gurung
Hi ruffeo wrote: > Does anyone know how to develop a complex django project in a 3 tiered > network environment, still using the MCV architecture? > > I.E. Web Server (view and control code), App Server (model code), and > Database Server model- representation that needs to be modeled into the

Re: reason for working on a copy of POST object

2009-03-03 Thread Ishwor Gurung
Hi Alex, Alex Gaynor wrote: > On Tue, Mar 3, 2009 at 6:29 PM, Ishwor Gurung <ish...@loopback.ath.cx>wrote: > >> Hi, >> >> What is the motive behind working on a copy of 'request.POST': >> e.g - >> if request.method == "POST": >>p

reason for working on a copy of POST object

2009-03-03 Thread Ishwor Gurung
Hi, What is the motive behind working on a copy of 'request.POST': e.g - if request.method == "POST": post = request.POST.copy() AFAIK, this implies making a copy of POST and working on it. Rather wouldn't it be faster if we work on request.POST directly? : if request.method == "POST:

Re: delete items in queryset results?

2009-03-03 Thread Ishwor Gurung
hello adrian wrote: > > I've got a table of species sightings. > I need a query that returns the latest sighting for each species. > I believe this would normally require GROUP BY but I > am trying to avoid raw SQL. > > Could I do the query without the GROUP BY, and then > modify the queryset