Re: Register signal on all objects

2010-01-09 Thread Ishwor Gurung
2010/1/10 Matias : [...] > 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 because you are subscribed to th

Re: print statements don't show up

2010-01-09 Thread Ishwor Gurung
2010/1/10 aditya : > Ok, I figured it out...it turns out urls.py doesn't get executed by > runserver until I actually try a url. All I needed to do was point my > browser to localhost:8000, and everything worked as expected : Glad you figured it out :) [...] -- Regards Ishwor

Re: print statements don't show up

2010-01-09 Thread Ishwor Gurung
art 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 4E5E 17B5 --

Re: print statements don't show up

2010-01-09 Thread Ishwor Gurung
atements 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? -- Regards I

Re: my http://site/admin link

2009-12-05 Thread Ishwor Gurung
lease 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 message because you are su

Re: DB table hook/callback

2009-11-17 Thread Ishwor Gurung
Andy, Hi. 2009/11/17 Andy McKay : > 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 word "framework" is

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 because you a

Re: What would cause an app to not register?

2009-11-16 Thread Ishwor Gurung
ring GD, presto - everything is installed > properly. Yep, you can also try writing the tracebacks in your code while using development server (http://docs.python.org/library/traceback.html) import traceback class Foo(): try: . except: print traceback.format_exc( ); -- Rega

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

2009-11-15 Thread Ishwor Gurung
_pool(k) => Get v 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

Re: setup python, django for web development

2009-11-15 Thread Ishwor Gurung
376673e1f281a8f/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 email to django-users+unsubscr...@g

Re: Templates,layout, css, ie and Pyjamas

2009-11-09 Thread Ishwor Gurung
erful Peter of SyPy Fame 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 --~--~-~--~~~---~--~-

Re: Templates,layout, css, ie and Pyjamas

2009-11-09 Thread Ishwor Gurung
bout making sure that all the browsers > look good. If you can abstract out browser specific functionality, should be good across all major browsers - Firefox, IE, Chrome > Can anyone help me? Google - Django templates. If you leave in Sydney, drop me an email off list. I can help you o

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 Crypt

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 run

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 mod

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 d

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 wrote: > >> Hi, >> >> What is the motive behind working on a copy of 'request.POST': >> e.g - >> if request.method == "POST": >>post = request.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 re