Alright, I swore to myself that I would learn django, so here I
am...learning!


Anyways, I have run into another problem.  I'm trying to make a form
that allows a user to submit information.  The only problem is that
whenever I try to submit anything, it always comes back as saying
"Please correct the following errors".  I took all the submission
fields out except for one text box, and it still says it!

Here is my template html file....

{% if form.has_errors %}
<h2> Please correct the following error{{ form.error_dict|pluralize
}}:</h2>
{% endif %}
<form method="post" action=".">
        <script type="text/javascript" src="/jsi18n/"></script>
        <script type="text/javascript" src="/media/js/core.js"></script>
        <script type="text/javascript"
src="/media/js/admin/RelatedObjectLookups.js"></script>
        <script type="text/javascript" src="/media/js/calendar.js"></script>
        <script type="text/javascript"
src="/media/js/admin/DateTimeShortcuts.js"></script>

        <p>
                <label for="id_overview">Overview</label> {{ form.overview }}
                        {% if form.overview.errors %}*** {{ 
form.overview.errors|join:", "
}}{% endif %}
        </p>


<input type="submit" />
</form>


------------------
the models file has a slew of fields in it (for the columns in the
database).  Just wondering if the other fields can't be null.  Also,
wondering if there's a trick to map the form names to the view to be
saved.


Thanks
mike


--~--~---------~--~----~------------~-------~--~----~
 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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to