On 8/22/06, cyberco <[EMAIL PROTECTED]> wrote:
Is this a direct copy and paste, or a retype? The reason I ask is that the behaviour you are reporting has all the symptoms of a mistyped template variable that is silently failing.
{{ form.videoFile }} will render as a input hidden; {{ form.videoFile_file }} should be rendering as the file input. Since the hidden input is being rendered, it suggests that there is something minor wrong with the second template field.
Try putting the following settings in your settings file:
TEMPLATE_STRING_IF_INVALID = 'XXX'
TEMPLATE_DEBUG=True
This will interpret any 'missing' fields as 'XXX', rather than the silent failure that Django usually adopts. If I'm right, you should start getting XXX in your rendered pages right after the hidden field.
Yours,
Russ Magee %-)
This seems quite basic, but still, I'm missing something. What could be
the problem?
Is this a direct copy and paste, or a retype? The reason I ask is that the behaviour you are reporting has all the symptoms of a mistyped template variable that is silently failing.
{{ form.videoFile }} will render as a input hidden; {{ form.videoFile_file }} should be rendering as the file input. Since the hidden input is being rendered, it suggests that there is something minor wrong with the second template field.
Try putting the following settings in your settings file:
TEMPLATE_DEBUG=True
This will interpret any 'missing' fields as 'XXX', rather than the silent failure that Django usually adopts. If I'm right, you should start getting XXX in your rendered pages right after the hidden field.
Yours,
Russ Magee %-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---