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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:24:16+00:00 2026-05-26T22:24:16+00:00

I have a question: How should I name apps, views, models, forms, fields, etc?

  • 0

I have a question: “How should I name apps, views, models, forms, fields, etc?”

For example I have a browser game that has a mailbox implemented.

App cannot be named mailbox so I name it pm_box (is that good?)

Then I have to create model where all the messages are held. What model name should be? Message or Messages? It should have a boolean field which is True if message has already been read. Should that field be called read or is_read?

Then I have a view that lists the messages. Should I name it list_messages, message_list, message_list_view or list_messages_view (if I do not specify inbox/outbox)?

The the form for new message input data validation. Should the form be named NewMessageForm, MessageWritingForm..?

After that I want to keep track of timestamps for every player. For this purpose I have Player model (or should it be Players)? With OneToOne field to the user and OneToOne field to Timestamp model (or timestamps) that has fields: online, last_pm_sent, some_action.

Thanks for all your answers. I have already read django styling documentation and pep, however, nowhere these things are specified.

EDIT: The project name (in pyCharm) is my game name. How should I name the first app and where should I hold the Player(s) model (in which app) which is UserProfile as well.

  • 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-26T22:24:17+00:00Added an answer on May 26, 2026 at 10:24 pm

    Alright starting with what you’ve named,
    it must not be pm_box, try naming discretely, if something is keyword try finding an appropriate synonym, here PersonalMessage and your view folder will be personal_messages while file will be usually good like single word, eg. enlist.html, display.html, etc. will be good, we mostly follow this structure in django:

    Model Class Name

    Singular, If mutliple used upper letter camel casing -> Example: Person, User, Subject, StudentSubject, StudentGuardian etc.

    Form Class Name:

    Relevant Model Class Followed by Form -> Example: PersonForm, UserForm, SubjectForm etc.

    Boolean Variables:

    Proper with is_ or has_ prefix -> Example: is_present, is_available, is_online, has_parent, etc.

    Views:

    Put in folder plural of model, but instead of upper letter use underscore(_) after every word (in case of two letters) file name will be like function name -> Example: people/index.html, people/detail.html, student_guardians/display_fee.html etc.

    Though you may not entirely need a new model to keep 1-to-1 relationship, a better approach would be to add more fields to current table. Timestamp conventions could be like, last_visited_at, last_played_at, etc.

    You could give app a name by defining in model as:

    class UserProfile(models.Model):
        pass
        class Meta:
            app_label = 'Your Application Name'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have public site with some forms. Simple question: What kind of informations should
I have a product table called products It has 3 fields (name,model(PK), and class_name).
I have a very simple yes no question: should static methods have same result
Dear all,Now i have this question in my java program,I think it should be
Recently I have asked a question about what I should use to create self-contained
I have a simple question. Should I return a byte-array or simply base64 encode
Hey guys I have what should be a simple question, but I am new
This not a programming question but Most of the programmers using Eclipse should have
I just discovered the what c# knowledge should I have? question and wondered about
I don't know which title I should use for this question. I have a

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.