Skip to content

Conversation

@Student-aditya123
Copy link

This PR fixes two issues in the Contact Form module of the Django Portfolio project:

  1. Contact page had long loading time

✨this is happens due to
❌class="php-email-form" [it is not used in django, in place of this you used class="contact-form"]

Loading

❌ PHP Form JS (which blocks POST submission)
✨Because they block Django from receiving data.

  1. Contact form was not saving user input

✨Issue caused by incorrect request.POST handling

✨Updated the view logic to correctly validate and save form data

✨Fixed form field mismatches in the template

Optimized the view function

🔧 Changes Made

1.Updated contact_view logic

2.Improved form validation

3.Fixed template-level input issues

🧪 How I Tested

  1. Filled out the contact form with valid input → data saved successfully

  2. Checked admin panel → new contact entries visible

🔃 LOADING ERROR
loading_error

🔃 WITHOUT LOADING ERROR
free_from_error

Ready to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant