I'm specifically using Google AppEngine, but this seems like this is
more a django question.

I need an my template to render an interactive Table that someone can
click a date, or "Today".  The typical javascript calendar will do.  I
can do this without django, but I would like my form to automatically
render this.  Below is the current code I am using.

When the template is rendered a simple textbox is provided, with no
formatting guidance.  I would like the javascript calendar to assist
in picking the date and formatting the field.

Is it possible for django to render a javascript calendar?  How so?
If this is possible, a code snippet would be very helpful.

Note:  The only relevant documentation I can find is here:
http://docs.djangoproject.com/en/dev/ref/models/fields/#datefield
Which states:  The admin represents this as an <input type="text">
with a JavaScript calendar, and a shortcut for "Today". The JavaScript
calendar will always start the week on a Sunday.

But, I don't see any javascript calendar, nor do I know how to
integrate one.

Thanks for any assistance or advice!

Joe


<---------begin code------------>

# for illustrative purposes
class Registration(db.Model):
  courseName = db.StringProperty(required=True)
  startDate = db.DateProperty(required=True)


class RegistrationForm(djangoforms.ModelForm):
  class Meta:
    model = Registration

... Template...

 <form method="POST" action="/register">
                 <table> {{ RegistrationForm }} </table>
                 <input type="submit" value="Register" >
  </form>

<-------- end code------------>

--

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...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to