Re: Model Inheritance

2008-03-30 Thread David Marquis
I think that Django does not support model inheritance (yet). The dev team seems to have thought about it : http://code.djangoproject.com/wiki/ModelInheritance You might want to ask Google for "django model inheritance" for all the information you need. -- David On 30-Mar-08, at 4:27 PM,

Re: Django Admin WAP

2008-03-30 Thread David Marquis
Using the Django admin on a WAP browser would involve serious usability issues. I just can't imagine myself filling a django edit form with a numeric keypad, I would quickly throw the phone out the window. I really don't understand why would anyone want to endure such a thing, except from

Re: javascript in django

2008-03-28 Thread David Marquis
document.getElementById("field_id") OR if you use Prototype library : $("field_id") -- David On 28-Mar-08, at 10:49 AM, didia lim wrote: > hi baxter, how can JS get the texfield by ID.. is there any > documentation or example? sorry i'm still new in django > > - Original Message >

Fwd: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread David Marquis
Or rather : {% for a in entries %} Date: {{ a.date|date:"jS o\f F" }} {% endfor %} -- David Begin forwarded message: From: David Marquis <[EMAIL PROTECTED]> Date: March 2, 2008 8:15:00 PM EST (CA) To: django-users@googlegroups.com Subject: Re: How to display a dat

Re: How to display a date in my template as Mar. 1 2008...not 2008-03-01?

2008-03-02 Thread David Marquis
You forgot the pipe | character and the colon : {% for a in entries %} Date: {% a.date|date:"jS o\f F" %} {% endfor %} If a is your date, then: {% for a in entries %} Date: {% a|date:"jS o\f F" %} {% endfor %} Have you read the docs? They are pretty clear about the syntax of

Re: Assigning Dates to DateField instances

2008-02-25 Thread David Marquis
Hi Tim, > lEvent = Event(request.POST) Are you sure it's not that line causing trouble ? -- David On 21-Feb-08, at 5:16 PM, Tim Sawyer wrote: I'm not sure I understand what I'm doing here. I'm trying to create an Event object from the data in a form (a simple html form, not a django

Re: Issues with IE7 and {% for %} {% endfor %} tag

2008-02-21 Thread David Marquis
Malcom is right, this has absolutely nothing to do with the {% for %} tag. My guess is that your IE7 might be more restrictive on cookies and not allowing the server to create a session cookie. If your view code assumes that there is a session and you fetch "prize" from the session, then

Re: Code upgrade

2008-02-05 Thread David Marquis
If you didn't make any change to the Django source base, you can simply download the latest release and install the new version. If needed, you could also download the latest development version through the Subversion repository. On 5-Feb-08, at 12:51 PM, Chris wrote: Hello, does anyone

Re: Capability Problem With Django ORM

2008-01-24 Thread David Marquis
Hi xunSir, Personally, I can't understand your question. You will have to get some help with english speaking because what you wrote there is merely understandable. Thank you, -- David On 24-Jan-08, at 12:04 AM, xunSir wrote: class Person(models.Model): PIN =

Re: Sending SMS messages

2008-01-18 Thread David Marquis
Hi, You know that you can send SMS messages to most phones using an e-mail address ? [EMAIL PROTECTED] The exact domain name is specific to each mobile phone provider. This information can be obtained from the provider's web site. For more : http://en.wikipedia.org/wiki/SMS_gateways I

"Can't pickle function objects" in Sessions middleware. Any help ?

2008-01-18 Thread David Marquis
Hi folks, My first post on the forum! I've been watching the threads for a while, but now I need your help :) For a recent project, my users sometimes get the following error: (this error is output raw to the user, as text sent back to the browser as the response content) ** Mod_python