Re: Calling System Commands

2007-06-26 Thread Moses Ting
Jay, I'm running Apache under a Windows environment. I'm guessing Apache is not allowing me to run OS commands (for safety reasons)... I'll have to look into this a little further. Moses On Jun 26, 10:42 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 6/2

Re: Calling System Commands

2007-06-26 Thread Moses Ting
rompt or within the Django shell. Moses On Jun 26, 10:28 am, "Jay Parlar" <[EMAIL PROTECTED]> wrote: > On 6/26/07, Moses Ting <[EMAIL PROTECTED]> wrote: > > > > > Does anyone know if it's possible to make a system command call from a > > Django vi

Calling System Commands

2007-06-26 Thread Moses Ting
Does anyone know if it's possible to make a system command call from a Django view? For example, I'd like to make the following call straight from Django. import os os.system('echo Hello World') Thanks --~--~-~--~~~---~--~~ You received this message because you

How do they do the filters in admin?

2007-05-03 Thread Moses Ting
Anyone knows how the Django developers implemented the nice filtering feature in Admin. For example, if filtering is turned on for the id column, then the filters will automatically apply the following key/ value pair to the end of the link. /?object_id__exact=2 How then, does this get implemen

Re: paginator.has_next_page error?

2007-04-25 Thread Moses Ting
llowing instead: pageNum = int(request.GET.get("page_num", 0) On Apr 25, 1:24 am, "James Bennett" <[EMAIL PROTECTED]> wrote: > On 4/24/07, Moses Ting <[EMAIL PROTECTED]> wrote: > > > Has anyone run into errors with the paginator.has_next_page function? >

Generic Template

2007-04-25 Thread Moses Ting
Hello DJ Users, I'm trying to write a generic template where I can auto-populate a html table depending on which model I use. So for example the view does something like this: def genericView(request, model): context = {} fields = model._meta.fields fieldNames = [] for fiel

paginator.has_next_page error?

2007-04-24 Thread Moses Ting
Has anyone run into errors with the paginator.has_next_page function? It seems to be returning false even though I am certain that there's a next page. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Djang