You should prepare a different form that will submit the post to a specific 
table or database. you have to specify where the table or database the post 
will go.

On Sunday, August 20, 2023 at 11:29:57 AM UTC-5 Hamza Bilal wrote:

> {% extends 'home.html' %}
> {% load static %}
> {% block content %}
>
> <div class="page-heading">
>     <div class="container">
>       <div class="row">
>         <div class="col-lg-8">
>           <div class="top-text header-text">
>             <h6>Add Plots In Your Listing</h6>
>             <h2>If You Want To Buy The Plot Then Add It In Your Listing</
> h2>
>           </div>
>         </div>
>       </div>
>     </div>
> </div>
>
> <div class="contact-page">
>     <div class="container">
>       <div class="row">
>         <div class="col-lg-12">
>           <div class="inner-content">
>             <div class="row">
>               
>               <div class="col-lg-6 align-self-center">
>                 <form id="contact" action="" method="POST" enctype=
> "multipart/form-data">
>                   <div class="row">
>                     {% csrf_token %}
>                     <div class="col-lg-12">
>                         <label for="">Listing Type</label>
>                         {{ form.listing_type }}
>                             <label for="" >Area</label>
>                             {{ form.area }}
>                             <label for="">Location</label>
>                             {{ form.location }}
>
>                             <label for="">Price</label>
>                             {{ form.price }}
>                             <label for="">Title</label>
>                             {{ form.title }}
>                             <label for="">Upload An Image</label>
>                             {{ form.image }}
>                     </div>
>                     
>                     <div class="col-lg-12">
>                       <fieldset>
>                         <button type="submit" id="form-submit" 
> class="main-button 
> "><i class="fa fa-paper-plane"></i>Add Your Listing!</button>
>                       </fieldset>
>                     </div>
>                   </div>
>                 </form>
>               </div>
>             </div>
>           </div>
>         </div>
>       </div>
>     </div>
> </div>
>
>     
>     
>     
>     
>     
>
> {% endblock content %}
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e83ef63c-42cd-42d7-bae8-3f099bfd6de4n%40googlegroups.com.

Reply via email to