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 9302409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:14:59+00:00 2026-06-18T23:14:59+00:00

Have a basic question about how to show to tags in one within Django

  • 0

Have a basic question about how to show to tags in one within Django framework.
I would like my HTML table looks like:

HTML Table Object:

<table>
  <tr>
    <td>Cell1</td>
    <td>Cell2</td>
  </tr>
 </table>

Current Django code

from django import forms

class PFAMInp(forms.Form):
    Cell1 = forms.CharField(widget=forms.Textarea (attrs={'cols': 20, 'rows': 2}))
    Cell2 = forms.FloatField(required=True)

Later I am using Python to convert this Django form into HTML on GAE.

Python code to generate html

class PFAMInputPage(webapp.RequestHandler):
    def get(self):
        html = html + str(PFAMdb.PFAMInp())
        self.response.out.write(html)
app = webapp.WSGIApplication([('/.*', PFAMInputPage)], debug=True)
def main():
    run_wsgi_app(app)
if __name__ == '__main__':
    main()

My question is:
Is there a way to customize this django template to make it show two in one row, rather than showing two tags? Thanks for any suggestions.

  • 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-06-18T23:15:00+00:00Added an answer on June 18, 2026 at 11:15 pm

    You have the option of calling the form using Form.as_p() or Form.as_ul() which will print the form as a series of <p> tags or <li>tags, respectively.

    The full API specification is here.

    Here’s an example of how this might work:

    from django import forms
    
        class PFAMInp(forms.Form):
            Cell1 = forms.CharField(widget=forms.Textarea (attrs={'cols': 20, 'rows': 2}))
            Cell2 = forms.FloatField(required=True)
    
        pfami_form = PFAMInp().as_p()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry about the wording for my question title. I have a basic HTML anchor
I have a basic question. I would like to make running Arc.py several times
I have a basic question about assembly. Why do we bother doing arithmetic operations
I might have pretty basic question about regex. I have the following regex, which
I'm a Ruby newbie. Have a very basic question about static and instance variables.
I am making a webapp. I have a fairly basic question about javascript performance.
I have a basic question, in the Django template language how can you tell
Basic logic question about show() and hide() . When a li is clicked, I
yet another basic question ... I have an app that takes about 4-5 secs
I am new to wxPython and I have a very basic question about getting

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.