Re: Unbundling the ORM

2006-03-12 Thread David Pratt
Hi Armin. I have worked with Django's ORM without the rest of Django. There is no reason you cannot use it this way, particularly with magic removal without the need to bundle as a separate product. I had also once thought of a simple repackaging prior magic removal. Fact is, you can just impo

Re: DoJo Integration & JSON methods

2006-02-17 Thread David Pratt
rical use. > > On 2/17/06, David Pratt <[EMAIL PROTECTED]> wrote: > >>Can someone advise whether there is a grid type widget for dojo that >>could work with model data. Many thanks. >> >>David >> >> >> > > > > -- > [

Re: DoJo Integration & JSON methods

2006-02-16 Thread David Pratt
Can someone advise whether there is a grid type widget for dojo that could work with model data. Many thanks. David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group,

Re: Proposal: custom admin field templates

2006-02-13 Thread David Pratt
Hi. I have a situation where I store a pickle in a field that I'd like to unpickle for an update form and on save pickle again. What would be the best approach for this scenario given the current or future possibilities of admin customization. Regards, David Jacob Kaplan-Moss wrote: On F

Plan for No Magic

2006-01-06 Thread David Pratt
Hi there. What kind of time anticipated time line for no magic branch to be tagged as a release? I am accumulating a fair amount of code and am getting nervous about the number of changes that I will need to make once this is stable. Many thanks David

CherryPy as Django Server (was HttpServer as a Windows Service)

2005-12-23 Thread David Pratt
that gets passed to the server to deliver the request properly. It would be great is there is someone interested in helping that understands this aspect of Django well that could lend a hand. Regards, David Adrian Holovaty wrote: On 12/20/05, David Pratt <[EMAIL PROTECTED]> wrote:

Re: HttpServer as a Windows Service

2005-12-20 Thread David Pratt
Adrian Holovaty wrote: On 12/20/05, David Pratt <[EMAIL PROTECTED]> wrote: Further, if cherrypy wsgiserver is used, the cgi for windows service has already been written and get Django a bit futher along for some sort of packaging as been suggested for Windows. Hi David, This sounds f

Re: HttpServer as a Windows Service

2005-12-20 Thread David Pratt
Hi Adrian. I think the first part of this is to get the server to spin off its thread with a cgi to start and stop. This can then be wrapped with win32service to make this a windows service as with similar code I put up the other day. I noticed that Django is already using the cherrypy autore

Re: HttpServer as a Windows Service

2005-12-19 Thread David Pratt
until I understand everything a bit more clearly. Regards, David Adrian Holovaty wrote: On 12/19/05, David Pratt <[EMAIL PROTECTED]> wrote: Hi Ian. Thanks for your reply. It does, however I was looking at this from the perspective of running the small httpserver as its own service when

Re: HttpServer as a Windows Service

2005-12-19 Thread David Pratt
Thanks for this. I have been reading up quite a bit on threading and also windows services. I am not much of a windows user but sometimes you find yourself needing to do things with it. For me Mac is great and Unix of course. Regards, David PythonistL wrote: David, Check this http://group

Re: HttpServer as a Windows Service

2005-12-19 Thread David Pratt
Hi Ian. Thanks for your reply. It does, however I was looking at this from the perspective of running the small httpserver as its own service when Django is installed on a Windows machine for development. Is there any interest in this? Regards, David Ian Holsman wrote: doesn't Apache HTTP

HttpServer as a Windows Service

2005-12-18 Thread David Pratt
I was doing a bit of searching today to see what I could dig up to improve how the development server operates on Windows. I found this which is pretty close to what I want to do. It comes from Turbo Gears. Is there any interest from anyone else to help me implement the light development serv

Running the small server in another thread

2005-12-18 Thread David Pratt
HI. I was wondering if anyone has advice on setting up the small web server to run in its own thread - something to see that it stays alive as well. Regards, David

Re: Programatic install

2005-12-15 Thread David Pratt
Hi Adrian. Super :-) This did the trick. Many thanks! Regards David Adrian Holovaty wrote: On 12/15/05, David Pratt <[EMAIL PROTECTED]> wrote: Can someone fill in the blank. Many thanks. [...] from django.core import management # Setup up an app management.init() management.i

Programatic install

2005-12-15 Thread David Pratt
Hi. Have a quick question. I have been programatically setting up my databases with default data etc, and install by importing management. Trouble is I cannot seem to find method equivalent to: django-admin.py install admin so I can do this at the same time. Can someone fill in the blank. Ma

Re: Committing delete with execute()

2005-11-20 Thread David Pratt
Ok, super. Just thought I would verify this. Many thanks. Regards, David On Sunday, November 20, 2005, at 01:37 PM, Adrian Holovaty wrote: On 11/19/05, David Pratt <[EMAIL PROTECTED]> wrote: This seems to be fine for inserts but I found with delete statements, I must be explicit

Committing delete with execute()

2005-11-19 Thread David Pratt
Hi. I have been using the django db api for a project using SQLite-3.2.7 with pysqlite-2.0.5. The form of my more complicated sql statements have been of the form: from django.core.db import db query = "SELECT ... the rest of my query ..." cursor = db.cursor() cursor.execute(query) records

Re: Couple of quick db api questions

2005-11-03 Thread David Pratt
Hi. On Thursday, November 3, 2005, at 06:37 PM, Adrian Holovaty wrote: On 11/3/05, David Pratt <[EMAIL PROTECTED]> wrote: Anyway, let me know what you think so I can get started. django-admin sqlinit mymodel * new method django-admin init mymodel current - n

Re: Couple of quick db api questions

2005-11-03 Thread David Pratt
On Thursday, November 3, 2005, at 04:42 PM, Adrian Holovaty wrote: On 11/3/05, David Pratt <[EMAIL PROTECTED]> wrote: 1. Is it possible to execute the sqlreset or sqlclear statement through django-admin (opposite of django-admin install) I haven't found a django-admin drop o

Couple of quick db api questions

2005-11-03 Thread David Pratt
1. Is it possible to execute the sqlreset or sqlclear statement through django-admin (opposite of django-admin install) I haven't found a django-admin drop or an django-admin reset at this point and don't see anything in the management.py to indicate this is possible. Should I write this cod

Re: DB API / administation as stand alone

2005-11-03 Thread David Pratt
Many thanks Adrian. I am really please for what this will mean to simplify my SQL development. Thank you for a really nice api that is very dynamic. Regards, David On Thursday, November 3, 2005, at 01:52 PM, Adrian Holovaty wrote: On 11/3/05, David Pratt <[EMAIL PROTECTED]> wro

Re: DB API / administation as stand alone

2005-11-03 Thread David Pratt
Hi Adrian and others. I am finding I can work with Django with minor changes in my project organization as Adrian had indicated. I eliminated the apps folder to make my structure more understandable since an app can be made directly in the root of the project folder. Should I expect any sid

Re: DB API / administation as stand alone

2005-11-02 Thread David Pratt
Hi Adrian. Many thanks. I guess the thing I am trying to work out is a project structure to satisfy my wxPython development as well. In any case I'm going forward with this today and if I have questions, I'll repost. It would be nice, structurally if the database wrapping component of dj