- Language: en
18 results for full text search in version 1.8
-
Model field reference
- … text field. The default form widget for this field is a Textarea . Changed in Django 1.7: If you specify a max_length attribute, it will be reflected in the Textarea widget of the auto-generated …
-
django-admin and manage.py
- … search path . If this isn’t provided, django-admin will use the PYTHONPATH environment variable. Note that this option is unnecessary in manage.py , because it takes care of setting the Python path for you. --settings …
-
Writing your first Django app, part 3
- … text “ Hello, world. You’re at the polls index. ”, which you defined in the index view. The url() function is passed four arguments, two required: regex and view , and two optional: kwargs , and name …
-
Custom template tags and filters
- … searched by the template loader, we’d register the tag like this: # Here, register is a django.template.Library instance, as before @register . inclusion_tag ( 'results.html' ) def show_results ( poll ): ... Alternatively it is possible …
-
Writing custom model fields
- … full hand.""" p1 = re . compile ( '. {26} ' ) p2 = re . compile ( '..' ) args = [ p2 . findall ( x ) for x in p1 . findall ( hand_string )] if len ( args ) != 4 : raise ValidationError ( _ ( "Invalid …
-
Design philosophies
- … full advantage of Python’s dynamic capabilities, such as introspection. Quick development The point of a Web framework in the 21st century is to make the tedious aspects of Web development fast. Django should allow …
-
Request and response objects
- … searches POST first, then GET . Inspired by PHP’s $_REQUEST . For example, if GET = {"name": "john"} and POST = {"age": '34'} , REQUEST["name"] would be "john …
-
django.http.response
- … search ( content_type ) if matched : # Extract the charset and strip its double quotes return matched . group ( 'charset' ) . replace ( '"' , '' ) return settings . DEFAULT_CHARSET @charset . setter def charset ( self , value …