Re: Using TEMPLATE_DIRS and impact on admin pages path

2008-10-30 Thread RossGK
Sorry - more info in dribs and drabs as i get it. I thought I could add a path to the admin templates, but no luck. Tried adding /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- packages/django/contrib/admin/templates to the TEMPLATE_DIRS and it has no effect. Interestingl

Re: Using TEMPLATE_DIRS and impact on admin pages path

2008-10-30 Thread RossGK
Should also mention that in moving from win32 to darwin, I also migrated from 0.96 to 1.0, and made the appropriate changes to make admin work, as per the porting guide on docs.djangoproject.com. Ross. On Oct 30, 2:26 pm, RossGK <[EMAIL PROTECTED]> wrote: > Moving development from win

Using TEMPLATE_DIRS and impact on admin pages path

2008-10-30 Thread RossGK
Moving development from win32 to mac and one little thing I don't understand about template paths. Got django set up and DB in place etc, and was able to use the admin functions to populate some DB content. Everything seemed fine. But, initially on the Mac, my templates weren't being found, thoug

Re: Simple object creation in postgresql with django views code...

2008-07-07 Thread RossGK
ignores it and moves on. There was no traceback though either, making debugging a bit tough. R. On Jul 7, 10:14 am, RossGK <[EMAIL PROTECTED]> wrote: > Sorry - the issue is that no change occurs to the database - I am > using pgAdminIII to inspect the database, and so can see if an entry

Re: Simple object creation in postgresql with django views code...

2008-07-07 Thread RossGK
Sorry - the issue is that no change occurs to the database - I am using pgAdminIII to inspect the database, and so can see if an entry gets created in my table. Here's the dbpart of the settings.py file seems pretty featureless... DATABASE_ENGINE = 'postgresql_psycopg2' # 'postgresql_

Simple object creation in postgresql with django views code...

2008-07-04 Thread RossGK
I'm trying to do a bit of simple Django access to a postgresql database, and must be missing something. Using the tutorial info, I've had mixed success. I can pull a bit of stuff form the database, but have some curious behaviour that is slowing me down. See the example details below... Proble

Re: views.py: Always a simple return?

2008-06-30 Thread RossGK
That's good advice, Ross.. I have put together a looped XMLHttpRequest script that seems to be working well. Against my Django server it can get 100 replies in about a second, so it appears theoretically at least to be able to responsive enough to handle a few per second. Your note about 28 in

Re: views.py: Always a simple return?

2008-06-27 Thread RossGK
Thanks for the comments Norman, The appeal of HTTP is that it is so broadly seen as benign by networks that everyone can pretty much use it regardless of their network environment. The meta refresh tag is probably good for refreshes in the order of seconds, but for a pseudo real-time streaming a

Re: views.py: Always a simple return?

2008-06-27 Thread RossGK
Thanks for the thoughtful replies Scott. Client-side request orchestration is where I see myself headed. Your list of concerns is resonates with my concerns about the barriers on this as well. To be thorough I've been exploring the idea from both server side and client side, and the client side

Re: views.py: Always a simple return?

2008-06-26 Thread RossGK
My sense is that comet is tied to the use of iFrames. From my limited knowledge of iFrames, they are falling from favour with less w3c support and are the key to some security exploits. Is that a fair assessment? The extra Orbited server also makes me hesitate... Simplicity and all that. But

Re: views.py: Always a simple return?

2008-06-26 Thread RossGK
On Jun 25, 4:56 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote: > Generally with HTTP, you would configure your server to continue to respond > to requests;)  Which is exactly what django does anyway. That's my question - rather than one response to a request I'd like to have several responses.

views.py: Always a simple return?

2008-06-25 Thread RossGK
In a simple XMLhttpRequest I can do an ajax request for some data, have django look something up and send it to my browser. Is the response from the views.py always just a single response return render_to_response('my_index.html', {'all_data': all_data}) or is there some means to do either

Django Popups?

2008-06-24 Thread RossGK
I'm a recent Python/Django inductee and trying to get a small project going. Is there a good way to do a pop-up window from Django or should I use java-script. Right now, I can call an and pop up mypage.html with some appropriate content and return code. I can imagine one path which would be