Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6099451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:16:30+00:00 2026-05-23T13:16:30+00:00

I have many forms which are working fine if i load them via normal

  • 0

I have many forms which are working fine if i load them via normal http link.

The template is below

{% extends "app/base.html" %}
{% block title %}Create Account{% endblock %}
{% block media %}  {% include "app/media_template.html" %}  {% endblock %}
{% block heading %}Form{% endblock %}
{% block content %}

    <div id="stylized" class="myform">
    <form action="" method="post" enctype="multipart/form-data" >
    <h1>Account form</h1>
    <p>This is the basic look of my form without table</p>
    {% csrf_token %}
    {% for field in form %}

            {{ field.errors }}
            {{ field.label_tag }}  {{ field }}

    {% endfor %}
   <button type="submit">Sign-up</button>
   <div class="spacer"></div>
    </form>
    </div>
{% endblock %}

But if i have to display via ajax then i just need the div box containing form only , i don’t nedd all other html

So i want that if JS is not working then those forms still work via hyperlink.

I have 6 forms , do i have to create seoarate templae if i call via ajax

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:16:30+00:00Added an answer on May 23, 2026 at 1:16 pm

    If you need to use part of your template in several places, you can put that part in a separate template, and include it wherever you need:

    {% include "foo/bar.html" %}
    

    https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#include

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form MainForm which is a Windows Forms form that contains many
Contributing to open source can have many forms: working with issue trackers, patches, further
I'm working on something which will require monitoring of many forms. From outside the
I have a form which have many check boxes in it. User will check
I have WPF Form which has many buttons with the same code. Appearance of
I have many forms that use AJAX (w/ jQuery) for validation and data submission.
I have a page with many forms in panels and usercontrols, and a requiredfield
I have a page with many forms on it. could be 1..200. None of
I have a Tcl/Tk app that generates many forms and would like to be
If I have a single page with many forms of existing records: index.html.haml -

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.