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

  • Home
  • SEARCH
  • 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 3341778
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:45:43+00:00 2026-05-18T00:45:43+00:00

In django orm I can use the ‘verbose_name’ kwarg to set a label that

  • 0

In django orm I can use the ‘verbose_name’ kwarg to set a label that will be displayed in model forms. Now I’m dynamically generating WTForms for each model in a SQLAlchemy mapped backend, but I’m not sure where to associate a display text to use in the auto generated fields for each form. For example, in django I could do this:

class User(models.Model):
    name = CharField(max_length=50, verbose_name='Enter your username')
    password = CharField(max_length=50, verbose_name='Enter your password')

In SQLAlchemy:

class User(Base):
    name = Column(String)
    password = Column(String)

In this simple case, how could I associate the texts ‘Enter your username’ and ‘Enter your password’ with the ‘name’ and ‘password’ attributes respectively?

  • 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-18T00:45:44+00:00Added an answer on May 18, 2026 at 12:45 am

    You could duplicate that functionality by using the ‘info’ keyword argument to Column. That would look like this:

    Class User(Base):
        name = Column(String, info={verbose_name: 'Enter your username',})
        password = Column(String, info={verbose_name: 'Enter your password',})
    

    Then you could pull info[‘verbose_name’] out when you dynamically generate a form.

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

Sidebar

Related Questions

Due to performance reasons I can't use the ORM query methods of Django and
In Django's template language, you can use {% url [viewname] [args] %} to generate
I'm trying to use the Django ORM in some standalone screen scraping scripts. I
I'm trying to optimize a slow query that was generated by the Django ORM.
When using django, I believe you can swap out the built-in orm for sqlalchemy
Django view points to a function, which can be a problem if you want
(Django 1.x, Python 2.6.x) I have models to the tune of: class Animal(models.Model): pass
I'm fairly new to Django and have a basic question: I want to use
I need select rows with django orm. I need equivalent of such query select
I have the following code, using Django ORM routes =Routes.objects.filter(scheduleid=schedule.id).only('externalid') t_list = [(route.externalid, route.vehicle.name)

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.