Python 标准库参考指南 2.7.18 is all they need –it’s not usually nec- essary to create your own weak references directly. The low-level machinery used by the weak dictionary implementations is exposed by the weakref module for the benefit to be created “magically”and not by using the regular creation functions. This module provides a low-level interface to the interpreter, so care must be exercised when using this module. It is possible to 为字符串,data 为任意对象): import shelve d = shelve.open(filename) # open -- file may get suffix added by low-level # library d[key] = data # store data at key (overwrites old data if # using an existing key)0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 is all they need –it’s not usually nec- essary to create your own weak references directly. The low-level machinery used by the weak dictionary implementations is exposed by the weakref module for the benefit to be created “magically”and not by using the regular creation functions. This module provides a low-level interface to the interpreter, so care must be exercised when using this module. It is possible to 为字符串,data 为任意对象): import shelve d = shelve.open(filename) # open -- file may get suffix added by low-level # library d[key] = data # store data at key (overwrites old data if # using an existing key)0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 is all they need –it’s not usually nec- essary to create your own weak references directly. The low-level machinery used by the weak dictionary implementations is exposed by the weakref module for the benefit to be created “magically”and not by using the regular creation functions. This module provides a low-level interface to the interpreter, so care must be exercised when using this module. It is possible to 为字符串,data 为任意对象): import shelve d = shelve.open(filename) # open -- file may get suffix added by low-level # library d[key] = data # store data at key (overwrites old data if # using an existing key)0 码力 | 1552 页 | 7.42 MB | 9 月前3
Django CMS 3.11.10 Documentationyou need complete control over the layout of your extension toolbar items you can still use the low-level API to edit the toolbar according to your needs: from django.db import models from cms.extensions ting-INSTALLED_APPS], by trying to import their cms_app module. When CMS_APPHOOKS is set, auto-discovery is disabled. Example: Internationalisation and localisation (I18N and L10N) CMS_LANGUAGES default wizard_pool.WizardPool get_entries() Returns all entries in weight-order. NOTE: This method triggers pool discovery. get_entry(entry) Returns the wizard from the pool identified by «entry», which may be a Wizard0 码力 | 493 页 | 1.44 MB | 6 月前0.03
Django 4.2.x Documentationframework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Asynchronous support Downstream caches Using Vary headers Controlling cache: Using other conditional processing Cryptographic 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 framework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Asynchronous support Downstream caches Using Vary headers Controlling cache: Using other0 码力 | 3305 页 | 3.16 MB | 1 年前3
Django 4.1.x Documentationframework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Asynchronous support Downstream caches Using Vary headers Controlling cache: Using other conditional processing Cryptographic 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 framework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Asynchronous support Downstream caches Using Vary headers Controlling cache: Using other0 码力 | 3240 页 | 3.13 MB | 1 年前3
Django 4.0.x Documentationframework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Asynchronous support Downstream caches Using Vary headers Controlling cache: Using other with middleware conditional processing 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 framework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Asynchronous support Downstream caches Using Vary headers Controlling cache: Using other0 码力 | 3184 页 | 3.14 MB | 1 年前3
Django 3.2.x Documentationframework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Downstream caches Using Vary headers Controlling cache: Using other headers Order of MIDDLEWARE with middleware conditional processing 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 framework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Downstream caches Using Vary headers Controlling cache: Using other headers Order of MIDDLEWARE0 码力 | 3121 页 | 3.08 MB | 1 年前3
Django 2.1.x Documentationframework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Downstream caches Using Vary headers Controlling cache: Using other headers Order of MIDDLEWARE with middleware conditional processing 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 framework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Downstream caches Using Vary headers Controlling cache: Using other headers Order of MIDDLEWARE0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 2.2.x Documentationframework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Downstream caches Using Vary headers Controlling cache: Using other headers Order of MIDDLEWARE with middleware conditional processing 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 framework Setting up the cache The per-site cache The per-view cache Template fragment caching The low-level cache API Downstream caches Using Vary headers Controlling cache: Using other headers Order of MIDDLEWARE0 码力 | 2915 页 | 2.83 MB | 1 年前3
共 305 条
- 1
- 2
- 3
- 4
- 5
- 6
- 31













