Django 2.2.x Documentation
Cryptographic signing Protecting the SECRET_KEY Using the low-level API Sending email Quick example send_mail() send_mass_mail() mail_admins() mail_managers() Examples Preventing header injection The Configuring logging Django’s logging extensions Django’s default logging configuration Pagination Example Using Paginator in a view Paginator objects InvalidPage exceptions Page objects Security in Django FileField subclass Custom Lookups A simple lookup example A simple transformer example Writing an efficient abs__lt lookup A bilateral transformer example Writing alternative implementations for existing0 码力 | 2915 页 | 2.83 MB | 1 年前3Django 2.1.x Documentation
Cryptographic signing Protecting the SECRET_KEY Using the low-level API Sending email Quick example send_mail() send_mass_mail() mail_admins() mail_managers() Examples Preventing header injection The Configuring logging Django’s logging extensions Django’s default logging configuration Pagination Example Using Paginator in a view Paginator objects InvalidPage exceptions Page objects Security in Django FileField subclass Custom Lookups A simple lookup example A simple transformer example Writing an efficient abs__lt lookup A bilateral transformer example Writing alternative implementations for existing0 码力 | 2790 页 | 2.71 MB | 1 年前3Django 4.2.x Documentation
signing Protecting SECRET_KEY and SECRET_KEY_FALLBACKS Using the low-level API Sending email Quick example send_mail() send_mass_mail() mail_admins() mail_managers() Examples Preventing header injection The Definitions Logging Overview Security implications Configuring logging Pagination The Paginator class Example Paginating a ListView Using Paginator in a view function Security in Django Cross site scripting FileField subclass How to write custom lookups A lookup example A transformer example Writing an efficient abs__lt lookup A bilateral transformer example Writing alternative implementations for existing lookups0 码力 | 3305 页 | 3.16 MB | 1 年前3Django 2.1.x Documentation
models – so far, it’s been solving many years’ worth of database-schema problems. Here’s a quick example: Listing 1: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name decouple URLs from Python code. Here’s what a URLconf might look like for the Reporter/Article example above: Listing 4: mysite/news/urls.py from django.urls import path from . import views urlpatterns request object – which contains request metadata – and the values captured in the pattern. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views0 码力 | 1910 页 | 6.49 MB | 1 年前3Django 2.0.x Documentation
Cryptographic signing Protecting the SECRET_KEY Using the low-level API Sending email Quick example send_mail() send_mass_mail() mail_admins() mail_managers() Examples Preventing header injection The Configuring logging Django’s logging extensions Django’s default logging configuration Pagination Example Using Paginator in a view Paginator objects InvalidPage exceptions Page objects Security in Django FileField subclass Custom Lookups A simple lookup example A simple transformer example Writing an efficient abs__lt lookup A bilateral transformer example Writing alternative implementations for existing0 码力 | 2746 页 | 2.67 MB | 1 年前3Django 4.1.x Documentation
signing Protecting SECRET_KEY and SECRET_KEY_FALLBACKS Using the low-level API Sending email Quick example send_mail() send_mass_mail() mail_admins() mail_managers() Examples Preventing header injection The Definitions Logging Overview Security implications Configuring logging Pagination The Paginator class Example Paginating a ListView Using Paginator in a view function Security in Django Cross site scripting FileField subclass How to write custom lookups A lookup example A transformer example Writing an efficient abs__lt lookup A bilateral transformer example Writing alternative implementations for existing lookups0 码力 | 3240 页 | 3.13 MB | 1 年前3Django 2.0.x Documentation
models – so far, it’s been solving many years’ worth of database-schema problems. Here’s a quick example: mysite/news/models.py from django.db import models class Reporter(models.Model): full_name = decouple URLs from Python code. Here’s what a URLconf might look like for the Reporter/Article example above: mysite/news/urls.py from django.urls import path from . import views urlpatterns = [ request object – which contains request metadata – and the values captured in the pattern. For example, if a user requested the URL “/articles/2005/05/39323/”, Django would call the function news.views0 码力 | 1880 页 | 6.41 MB | 1 年前3Django 4.0.x Documentation
Cryptographic signing Protecting the SECRET_KEY Using the low-level API Sending email Quick example send_mail() send_mass_mail() mail_admins() mail_managers() Examples Preventing header injection The Definitions Logging Overview Security implications Configuring logging Pagination The Paginator class Example Paginating a ListView Using Paginator in a view function Security in Django Cross site scripting FileField subclass How to write custom lookups A lookup example A transformer example Writing an efficient abs__lt lookup A bilateral transformer example Writing alternative implementations for existing lookups0 码力 | 3184 页 | 3.14 MB | 1 年前3Django 1.8.x Documentation
Cryptographic signing Protecting the SECRET_KEY Using the low-level API Sending email Quick example send_mail() send_mass_mail() mail_admins() mail_managers() Examples Preventing header injection The Configuring logging Django’s logging extensions Django’s default logging configuration Pagination Example Using Paginator in a view Paginator objects InvalidPage exceptions Page objects Porting to Python FileField subclass Custom Lookups A simple lookup example A simple transformer example Writing an efficient abs__lt lookup A bilateral transformer example Writing alternative implementations for existing0 码力 | 2454 页 | 2.85 MB | 1 年前3Django 1.11.x Documentation
Cryptographic signing Protecting the SECRET_KEY Using the low-level API Sending email Quick example send_mail() send_mass_mail() mail_admins() mail_managers() Examples Preventing header injection The Configuring logging Django’s logging extensions Django’s default logging configuration Pagination Example Using Paginator in a view Paginator objects InvalidPage exceptions Page objects Porting to Python FileField subclass Custom Lookups A simple lookup example A simple transformer example Writing an efficient abs__lt lookup A bilateral transformer example Writing alternative implementations for existing0 码力 | 2747 页 | 2.67 MB | 1 年前3
共 92 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10