- Language: en
13 results for map in version 2.1
-
Performing raw SQL queries
- … Mapping query fields to model fields raw() automatically maps fields in the query to fields …
-
Writing views
- … Mapping URLs to views So, to recap, this view function returns an HTML page that …
-
URL dispatcher
- … mapping between URL path expressions to Python functions (your views). This mapping can be as short …
-
Working with forms
- … map to database fields, a form class’s fields map to HTML form <input …
-
Creating forms from models
- … map closely to Django models. For instance, you might have a BlogComment model, and you want …
-
Testing tools
- … mapping valid inputs to their expected cleaned values. invalid – a dictionary mapping invalid inputs to one or more …
-
Translation
- … map the view at a version-dependent URL: from django.views.decorators.cache import cache_page from django.views …
-
Serializing Django objects
- … mappings with the keys “pk”, “model” and “fields”. Each field is again a mapping with …
-
Models
- … maps to a single database table. The basics: Each model is a Python class that …
-
Multiple databases
- … maps database aliases, which are a way to refer to a specific database throughout Django …
-
Class-based views
- … map the URL to book list view in the URLconf: from django.urls import path from …
-
Templates
- … mapping keys to values. Variables are surrounded by {{ and }} like this: My first name is {{ first …
-
Models and databases
- … maps to a single database table. Models Making queries Aggregation Search Managers Performing raw SQL queries …