Form displays as textarea on local server, but text input on remote server

7 views
Skip to first unread message

kelp

unread,
Apr 4, 2011, 1:37:44 PM4/4/11
to Django users
Hello,
I have a form set up in the following way:
from django.db import models
from django import forms

class ContactForm(forms.Form):
subject = forms.CharField(max_length=100)
message = forms.CharField(widget=forms.Textarea)
sender = forms.EmailField()
cc_myself = forms.BooleanField(required=False)

On my local machine, the "message" actually displays as a textarea,
but on my remote server, the "message" displays as a text input. I am
using Django version 1.2.3 on my local server and 1.2.5 on my remote
server. Yes, I am sure that this file is identical on both servers.

I am displaying the field with a simple: {{ form.message }}

Why does it display differently?

Thanks!
Reply all
Reply to author
Forward
0 new messages