Django
The web framework for perfectionists with deadlines.
Overview
Download
Documentation
News
Community
Code
Issues
About
♥ Donate
Issues
GitHub Login
DjangoProject Login
Preferences
API
View Tickets
Reports
Timeline
Wiki
Search
Context Navigation
Back to Ticket #19101
Ticket #19101
: forms.py
File forms.py,
205 bytes
(added by
kristall
,
11 years ago
)
The used form
Line
1
#!/usr/bin/env python3
2
# -*- coding: utf-8 -*-
3
4
from
django
import
forms
5
6
class
TestForm
(
forms
.
Form
):
7
8
Text
=
forms
.
CharField
(
widget
=
forms
.
Textarea
(
attrs
=
{
'rows'
:
10
,
'cols'
:
100
}),
required
=
False
)
Download in other formats:
Original Format
Back to Top