DateTimeFields have two inputs, not one. You need to use 
{{ form.start_at_date }} and {{ form.start_at_time }}

In addition, you cannot use the date or time filters on a form field.

On Jan 28, 3:16 pm, "johnny" <[EMAIL PROTECTED]> wrote:
> In my template, I am not getting a input field for start_at.  In my
> MySQL,
> I have the following:
> ------------------+---------------+------+-----+---------
> +----------------+
>  Field            | Type          | Null | Key | Default |
> Extra          |
> ------------------+---------------+------+-----+---------
> +----------------+
>  start_at         | datetime      | NO   |     | NULL
> |                |
>
> In the model I have the following:
> start_at = models.DateTimeField('Start At')
>
> In my template I have the following:
> <p>
>     <label for="id_start_at">Start At:</label> {{ form.start_at|
> date:"F j, Y" }}
>     {% if form.start_at.errors %}*** {{ form.start_at.errors|join:",
> " }}{% endif %}
> </p>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to