Code

Opened 6 years ago

Closed 6 years ago

#8002 closed (invalid)

Forms Library Documentation

Reported by: mrribbs Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The forms library documentation doesn't explain where to put the forms class definition file. On the Django IRC I was told that you make a form.py file in the same directory as models.py. Is this correct? It's not clear in the documentation.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by programmerq

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

Forms don't *need* to be anywhere specifically. It is simply a matter of choice as to where to put your forms. Many people simply choose to put them in the same directory as models.py, but that doesn't mean it isn't any more or less correct than putting the form definitions anywhere else in your python path.

I'm closing as invalid, but this note might be useful in the documentation.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.